Sign in
webkit
/
WebKit
/
706caf297da7aa008797b72008d543d8e2d08fc3
/
.
/
JSTests
/
es6
/
well-known_symbols_Symbol.species_Array.prototype.slice.js
blob: fe90717247775dfb8e90d05d86f2d5bf00d8a4da [
file
] [
log
] [
blame
]
function
test
()
{
var
obj
=
[];
obj
.
constructor
=
{};
obj
.
constructor
[
Symbol
.
species
]
=
function
()
{
return
{
foo
:
1
};
};
return
Array
.
prototype
.
slice
.
call
(
obj
,
0
).
foo
===
1
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);