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