11/**
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.
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.3.6',
22+ version = '2.3.6 Tue, 16 Jul 2024 05:19:14 GMT ',
2323 jsSuffixRegExp = /\.js$/,
2424 commandOption = '',
2525 useLibLoaded = {},
@@ -282,7 +282,8 @@ var requirejs, require, define, xpcUtil;
282282 contexts = {},
283283 cfg = {},
284284 globalDefQueue = [],
285- useInteractive = false;
285+ useInteractive = false,
286+ disallowedProps = ['__proto__', 'constructor'];
286287
287288 //Could match something like ')//comment', do not lose the prefix to comment.
288289 function commentReplace(match, singlePrefix) {
@@ -343,7 +344,7 @@ var requirejs, require, define, xpcUtil;
343344 function eachProp(obj, func) {
344345 var prop;
345346 for (prop in obj) {
346- if (hasProp(obj, prop)) {
347+ if (hasProp(obj, prop) && disallowedProps.indexOf(prop) == -1 ) {
347348 if (func(obj[prop], prop)) {
348349 break;
349350 }
0 commit comments