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