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