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