Sign in
webkit
/
WebKit
/
ff4cb3c2323f3937e96e08f4f6fbe6c7755f9da5
/
.
/
JSTests
/
es6
/
Array_is_subclassable_correct_prototype_chain.js
blob: d1df1499b0c63cdf3ffefa058d796f7415dc396b [
file
] [
log
] [
blame
]
function
test
()
{
class
C extends
Array
{}
var
c
=
new
C
();
return
c instanceof C
&&
c instanceof
Array
&&
Object
.
getPrototypeOf
(
C
)
===
Array
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);