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