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