1
1
#!/usr/bin/env node
2
2
/**
3
- * @license r.js 2.3.6 Copyright jQuery Foundation and other contributors.
3
+ * @license r.js 2.3.7 Copyright jQuery Foundation and other contributors.
4
4
* Released under MIT license, http://github.com/requirejs/r.js/LICENSE
5
5
*/
6
6
@@ -20,7 +20,7 @@ var requirejs, require, define, xpcUtil;
20
20
(function (console, args, readFileFunc) {
21
21
var fileName, env, fs, vm, path, exec, rhinoContext, dir, nodeRequire,
22
22
nodeDefine, exists, reqMain, loadedOptimizedLib, existsForNode, Cc, Ci,
23
- version = '2.3.6 ',
23
+ version = '2.3.7 ',
24
24
jsSuffixRegExp = /\.js$/,
25
25
commandOption = '',
26
26
useLibLoaded = {},
@@ -249,7 +249,7 @@ var requirejs, require, define, xpcUtil;
249
249
}
250
250
251
251
/** vim: et:ts=4:sw=4:sts=4
252
- * @license RequireJS 2.3.6 Copyright jQuery Foundation and other contributors.
252
+ * @license RequireJS 2.3.7 Copyright jQuery Foundation and other contributors.
253
253
* Released under MIT license, https://github.com/requirejs/requirejs/blob/master/LICENSE
254
254
*/
255
255
//Not using strict: uneven strict support in browsers, #392, and causes
@@ -261,7 +261,7 @@ var requirejs, require, define, xpcUtil;
261
261
(function (global, setTimeout) {
262
262
var req, s, head, baseElement, dataMain, src,
263
263
interactiveScript, currentlyAddingScript, mainScript, subPath,
264
- version = '2.3.6 ',
264
+ version = '2.3.7 ',
265
265
commentRegExp = /\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/mg,
266
266
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
267
267
jsSuffixRegExp = /\.js$/,
@@ -283,7 +283,8 @@ var requirejs, require, define, xpcUtil;
283
283
contexts = {},
284
284
cfg = {},
285
285
globalDefQueue = [],
286
- useInteractive = false;
286
+ useInteractive = false,
287
+ disallowedProps = ['__proto__', 'constructor'];
287
288
288
289
//Could match something like ')//comment', do not lose the prefix to comment.
289
290
function commentReplace(match, singlePrefix) {
@@ -344,7 +345,7 @@ var requirejs, require, define, xpcUtil;
344
345
function eachProp(obj, func) {
345
346
var prop;
346
347
for (prop in obj) {
347
- if (hasProp(obj, prop)) {
348
+ if (hasProp(obj, prop) && disallowedProps.indexOf(prop) == -1 ) {
348
349
if (func(obj[prop], prop)) {
349
350
break;
350
351
}
0 commit comments