Sign in
webkit
/
WebKit
/
5bd663b95d2fa0048c9b51d7e90d3c09992ceb28
/
.
/
JSTests
/
es6
/
well-known_symbols_Symbol.species_Array.prototype.map.js
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"
);