Remove unused funcClass variable from compiled functions.

Former-commit-id: f47b8e412b5151e69a3ab78f03243c461b5ab072
This commit is contained in:
John-David Dalton
2012-08-16 21:19:47 -07:00
parent 47b51c22fa
commit bf508e453e
2 changed files with 9 additions and 8 deletions

View File

@@ -11,7 +11,6 @@
'collection',
'concat',
'ctor',
'funcClass',
'hasOwnProperty',
'identity',
'index',

View File

@@ -662,18 +662,18 @@
// create the function factory
var factory = Function(
'arrayLikeClasses, ArrayProto, bind, compareAscending, concat, forIn, ' +
'funcClass, hasOwnProperty, identity, indexOf, isArguments, isArray, ' +
'isFunction, isPlainObject, iteratorBind, objectClass, objectTypes, ' +
'nativeKeys, propertyIsEnumerable, slice, stringClass, toString',
'hasOwnProperty, identity, indexOf, isArguments, isArray, isFunction, ' +
'isPlainObject, iteratorBind, objectClass, objectTypes, nativeKeys, ' +
'propertyIsEnumerable, slice, stringClass, toString',
'var callee = function(' + args + ') {\n' + iteratorTemplate(data) + '\n};\n' +
'return callee'
);
// return the compiled function
return factory(
arrayLikeClasses, ArrayProto, bind, compareAscending, concat, forIn,
funcClass, hasOwnProperty, identity, indexOf, isArguments, isArray,
isFunction, isPlainObject, iteratorBind, objectClass, objectTypes,
nativeKeys, propertyIsEnumerable, slice, stringClass, toString
hasOwnProperty, identity, indexOf, isArguments, isArray, isFunction,
isPlainObject, iteratorBind, objectClass, objectTypes, nativeKeys,
propertyIsEnumerable, slice, stringClass, toString
);
}
@@ -735,7 +735,9 @@
}
/**
* Checks if `value` is a plain `Object` object with `Object` as its constructor.
* Checks if a given `value` is an object created by the `Object` constructor
* assuming objects created by the `Object` constructor have no inherited
* enumerable properties and that there are no `Object.prototype` extensions.
*
* @private
* @param {Mixed} value The value to check.