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