mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 14:37:49 +00:00
Remove test until v3.0 when we'll enforce uniform skipping of the constructor property of prototype objects.
This commit is contained in:
13
test/test.js
13
test/test.js
@@ -2588,19 +2588,6 @@
|
||||
func(new Foo, function(value, key) { keys.push(key); });
|
||||
deepEqual(keys.sort(), ['a', 'b']);
|
||||
});
|
||||
|
||||
test('`_.' + methodName + '` fixes the JScript [[DontEnum]] bug with inherited properties (test in IE < 9)', 1, function() {
|
||||
function Foo() {}
|
||||
Foo.prototype = shadowedObject;
|
||||
|
||||
function Bar() {}
|
||||
Bar.prototype = new Foo;
|
||||
Bar.prototype.constructor = Bar;
|
||||
|
||||
var keys = [];
|
||||
func(new Bar, function(value, key) { keys.push(key); });
|
||||
deepEqual(keys.sort(), shadowedProps);
|
||||
});
|
||||
});
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user