blob: fe90717247775dfb8e90d05d86f2d5bf00d8a4da [file] [log] [blame]
function test() {
var obj = [];
obj.constructor = {};
obj.constructor[Symbol.species] = function() {
return { foo: 1 };
};
return Array.prototype.slice.call(obj, 0).foo === 1;
}
if (!test())
throw new Error("Test failed");