Make test.'s match var name usage in lodash.js.

Former-commit-id: 680581a0138315def67c213605140c74f7d6ee6a
This commit is contained in:
John-David Dalton
2013-08-25 20:39:43 -07:00
parent a820ee4c82
commit a11bff0c7b

View File

@@ -70,7 +70,7 @@
var largeArraySize = 75;
/** Used to set property descriptors */
var setDescriptor = (function() {
var defineProperty = (function() {
try {
var o = {},
func = Object.defineProperty,
@@ -2350,9 +2350,9 @@
});
test('should handle object arguments with non-numeric length properties', function() {
if (setDescriptor) {
if (defineProperty) {
var object = {};
setDescriptor(object, 'length', { 'value': 'x' });
defineProperty(object, 'length', { 'value': 'x' });
deepEqual(_.map(object, _.identity), []);
} else {
skipTest();