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