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