diff --git a/test/index.html b/test/index.html index e536bc2d9..8d3f64f8f 100644 --- a/test/index.html +++ b/test/index.html @@ -83,17 +83,7 @@ // Set bad shims. setProperty(Object, '_create', Object.create); - setProperty(Object, 'create', (function() { - function object() {} - return function(proto) { - if (proto === Object(proto)) { - object.prototype = proto; - var result = new object; - object.prototype = undefined; - } - return result || {}; - }; - }())); + setProperty(Object, 'create', undefined); setProperty(Object, '_getOwnPropertySymbols', Object.getOwnPropertySymbols); setProperty(Object, 'getOwnPropertySymbols', undefined); diff --git a/test/test.js b/test/test.js index aa9894262..c36c73e28 100644 --- a/test/test.js +++ b/test/test.js @@ -518,18 +518,7 @@ funcProto._method = noop; // Set bad shims. - setProperty(Object, 'create', (function() { - function object() {} - return function(proto) { - if (lodashStable.isObject(proto)) { - object.prototype = proto; - var result = new object; - object.prototype = undefined; - } - return result || {}; - }; - }())); - + setProperty(Object, 'create', undefined); setProperty(Object, 'getOwnPropertySymbols', undefined); var _propertyIsEnumerable = objectProto.propertyIsEnumerable;