Sign in
webkit
/
WebKit
/
44b42e43df7b445ca396546f504feb2128538221
/
.
/
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"
);