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