Sign in
webkit
/
WebKit
/
ccf8f7cdbfbfa46d99c5a9dcfbbf6cb2e9ec8c2c
/
.
/
JSTests
/
es6
/
Array_is_subclassable_Array.prototype.splice.js
blob: 6dbad9bf68d8f5f0b93074fa1488fcf600ceed7a [
file
] [
log
] [
blame
]
function
test
()
{
class
C extends
Array
{}
var
c
=
new
C
();
c
.
push
(
2
,
4
,
6
);
return
c
.
splice
(
1
,
2
)
instanceof C
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);