Skip to content

Commit db3d0b0

Browse files
committed
snapshot
1 parent dec871d commit db3d0b0

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

dist/r.js

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license r.js 2.2.0 Copyright jQuery Foundation and other contributors.
2+
* @license r.js 2.2.0+ Tue, 12 Jul 2016 03:17:23 GMT Copyright jQuery Foundation and other contributors.
33
* Released under MIT license, http://github.com/requirejs/r.js/LICENSE
44
*/
55

@@ -19,7 +19,7 @@ var requirejs, require, define, xpcUtil;
1919
(function (console, args, readFileFunc) {
2020
var fileName, env, fs, vm, path, exec, rhinoContext, dir, nodeRequire,
2121
nodeDefine, exists, reqMain, loadedOptimizedLib, existsForNode, Cc, Ci,
22-
version = '2.2.0',
22+
version = '2.2.0+ Tue, 12 Jul 2016 03:17:23 GMT',
2323
jsSuffixRegExp = /\.js$/,
2424
commandOption = '',
2525
useLibLoaded = {},
@@ -3569,7 +3569,11 @@ define('node/file', ['fs', 'path', 'prim'], function (fs, path, prim) {
35693569
} else if (stat.isDirectory() &&
35703570
(!file.exclusionRegExp || !file.exclusionRegExp.test(fileName))) {
35713571
dirFiles = this.getFilteredFileList(filePath, regExpFilters, makeUnixPaths);
3572-
files.push.apply(files, dirFiles);
3572+
//Do not use push.apply for dir listings, can hit limit of max number
3573+
//of arguments to a function call, #921.
3574+
dirFiles.forEach(function (dirFile) {
3575+
files.push(dirFile);
3576+
});
35733577
}
35743578
}
35753579
}
@@ -3838,7 +3842,11 @@ define('rhino/file', ['prim'], function (prim) {
38383842
} else if (fileObj.isDirectory() &&
38393843
(!file.exclusionRegExp || !file.exclusionRegExp.test(fileObj.getName()))) {
38403844
dirFiles = this.getFilteredFileList(fileObj, regExpFilters, makeUnixPaths, true);
3841-
files.push.apply(files, dirFiles);
3845+
//Do not use push.apply for dir listings, can hit limit of max number
3846+
//of arguments to a function call, #921.
3847+
dirFiles.forEach(function (dirFile) {
3848+
files.push(dirFile);
3849+
});
38423850
}
38433851
}
38443852
}
@@ -4145,7 +4153,11 @@ define('xpconnect/file', ['prim'], function (prim) {
41454153
} else if (fileObj.isDirectory() &&
41464154
(!file.exclusionRegExp || !file.exclusionRegExp.test(fileObj.leafName))) {
41474155
dirFiles = this.getFilteredFileList(fileObj, regExpFilters, makeUnixPaths, true);
4148-
files.push.apply(files, dirFiles);
4156+
//Do not use push.apply for dir listings, can hit limit of max number
4157+
//of arguments to a function call, #921.
4158+
dirFiles.forEach(function (dirFile) {
4159+
files.push(dirFile);
4160+
});
41494161
}
41504162
}
41514163
}

0 commit comments

Comments
 (0)