1
1
/**
2
- * @license r.js 2.3.6 Copyright jQuery Foundation and other contributors.
2
+ * @license r.js 2.3.6+ Tue, 16 Jul 2024 05:19:14 GMT Copyright jQuery Foundation and other contributors.
3
3
* Released under MIT license, http://github.com/requirejs/r.js/LICENSE
4
4
*/
5
5
@@ -19,7 +19,7 @@ var requirejs, require, define, xpcUtil;
19
19
(function (console, args, readFileFunc) {
20
20
var fileName, env, fs, vm, path, exec, rhinoContext, dir, nodeRequire,
21
21
nodeDefine, exists, reqMain, loadedOptimizedLib, existsForNode, Cc, Ci,
22
- version = '2.3.6',
22
+ version = '2.3.6 Tue, 16 Jul 2024 05:19:14 GMT ',
23
23
jsSuffixRegExp = /\.js$/,
24
24
commandOption = '',
25
25
useLibLoaded = {},
@@ -282,7 +282,8 @@ var requirejs, require, define, xpcUtil;
282
282
contexts = {},
283
283
cfg = {},
284
284
globalDefQueue = [],
285
- useInteractive = false;
285
+ useInteractive = false,
286
+ disallowedProps = ['__proto__', 'constructor'];
286
287
287
288
//Could match something like ')//comment', do not lose the prefix to comment.
288
289
function commentReplace(match, singlePrefix) {
@@ -343,7 +344,7 @@ var requirejs, require, define, xpcUtil;
343
344
function eachProp(obj, func) {
344
345
var prop;
345
346
for (prop in obj) {
346
- if (hasProp(obj, prop)) {
347
+ if (hasProp(obj, prop) && disallowedProps.indexOf(prop) == -1 ) {
347
348
if (func(obj[prop], prop)) {
348
349
break;
349
350
}
0 commit comments