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