Skip to content

Commit 1c78b78

Browse files
committed
2.3.7
1 parent 53c0418 commit 1c78b78

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

requirejs/bin/r.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
22
/**
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.
44
* Released under MIT license, http://github.com/requirejs/r.js/LICENSE
55
*/
66

@@ -20,7 +20,7 @@ var requirejs, require, define, xpcUtil;
2020
(function (console, args, readFileFunc) {
2121
var fileName, env, fs, vm, path, exec, rhinoContext, dir, nodeRequire,
2222
nodeDefine, exists, reqMain, loadedOptimizedLib, existsForNode, Cc, Ci,
23-
version = '2.3.6',
23+
version = '2.3.7',
2424
jsSuffixRegExp = /\.js$/,
2525
commandOption = '',
2626
useLibLoaded = {},
@@ -249,7 +249,7 @@ var requirejs, require, define, xpcUtil;
249249
}
250250

251251
/** 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.
253253
* Released under MIT license, https://github.com/requirejs/requirejs/blob/master/LICENSE
254254
*/
255255
//Not using strict: uneven strict support in browsers, #392, and causes
@@ -261,7 +261,7 @@ var requirejs, require, define, xpcUtil;
261261
(function (global, setTimeout) {
262262
var req, s, head, baseElement, dataMain, src,
263263
interactiveScript, currentlyAddingScript, mainScript, subPath,
264-
version = '2.3.6',
264+
version = '2.3.7',
265265
commentRegExp = /\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/mg,
266266
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
267267
jsSuffixRegExp = /\.js$/,
@@ -283,7 +283,8 @@ var requirejs, require, define, xpcUtil;
283283
contexts = {},
284284
cfg = {},
285285
globalDefQueue = [],
286-
useInteractive = false;
286+
useInteractive = false,
287+
disallowedProps = ['__proto__', 'constructor'];
287288

288289
//Could match something like ')//comment', do not lose the prefix to comment.
289290
function commentReplace(match, singlePrefix) {
@@ -344,7 +345,7 @@ var requirejs, require, define, xpcUtil;
344345
function eachProp(obj, func) {
345346
var prop;
346347
for (prop in obj) {
347-
if (hasProp(obj, prop)) {
348+
if (hasProp(obj, prop) && disallowedProps.indexOf(prop) == -1) {
348349
if (func(obj[prop], prop)) {
349350
break;
350351
}

requirejs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "requirejs",
33
"description": "Node adapter for RequireJS, for loading AMD modules. Includes RequireJS optimizer",
4-
"version": "2.3.6",
4+
"version": "2.3.7",
55
"homepage": "http://github.com/jrburke/r.js",
66
"author": "James Burke <jrburke@gmail.com> (http://github.com/jrburke)",
77
"license": "MIT",

requirejs/require.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** vim: et:ts=4:sw=4:sts=4
2-
* @license RequireJS 2.3.6 Copyright jQuery Foundation and other contributors.
2+
* @license RequireJS 2.3.7 Copyright jQuery Foundation and other contributors.
33
* Released under MIT license, https://github.com/requirejs/requirejs/blob/master/LICENSE
44
*/
55
//Not using strict: uneven strict support in browsers, #392, and causes
@@ -11,7 +11,7 @@ var requirejs, require, define;
1111
(function (global, setTimeout) {
1212
var req, s, head, baseElement, dataMain, src,
1313
interactiveScript, currentlyAddingScript, mainScript, subPath,
14-
version = '2.3.6',
14+
version = '2.3.7',
1515
commentRegExp = /\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/mg,
1616
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
1717
jsSuffixRegExp = /\.js$/,
@@ -33,7 +33,8 @@ var requirejs, require, define;
3333
contexts = {},
3434
cfg = {},
3535
globalDefQueue = [],
36-
useInteractive = false;
36+
useInteractive = false,
37+
disallowedProps = ['__proto__', 'constructor'];
3738

3839
//Could match something like ')//comment', do not lose the prefix to comment.
3940
function commentReplace(match, singlePrefix) {
@@ -94,7 +95,7 @@ var requirejs, require, define;
9495
function eachProp(obj, func) {
9596
var prop;
9697
for (prop in obj) {
97-
if (hasProp(obj, prop)) {
98+
if (hasProp(obj, prop) && disallowedProps.indexOf(prop) == -1) {
9899
if (func(obj[prop], prop)) {
99100
break;
100101
}

0 commit comments

Comments
 (0)