Rename shadowedProps to shadowProps.

This commit is contained in:
John-David Dalton
2014-11-21 00:39:59 -08:00
parent 8612946bf5
commit 1705bf4f3c
2 changed files with 23 additions and 23 deletions

View File

@@ -129,7 +129,7 @@
];
/** Used to fix the JScript `[[DontEnum]]` bug. */
var shadowedProps = [
var shadowProps = [
'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable',
'toLocaleString', 'toString', 'valueOf'
];
@@ -967,7 +967,7 @@
nonEnumProps[errorClass] = nonEnumProps[funcClass] = nonEnumProps[regexpClass] = { 'constructor': true, 'toString': true };
nonEnumProps[objectClass] = { 'constructor': true };
arrayEach(shadowedProps, function(key) {
arrayEach(shadowProps, function(key) {
for (var className in nonEnumProps) {
if (hasOwnProperty.call(nonEnumProps, className)) {
var props = nonEnumProps[className];
@@ -8153,9 +8153,9 @@
if (className == objectClass) {
proto = objectProto;
}
length = shadowedProps.length;
length = shadowProps.length;
while (length--) {
key = shadowedProps[length];
key = shadowProps[length];
var nonEnum = nonEnums[key];
if (!(isProto && nonEnum) &&
(nonEnum ? hasOwnProperty.call(object, key) : object[key] !== proto[key])) {