Sign in
webkit
/
WebKit
/
3e01ea2c6e60dac71bbc2366692c12538bc3430c
/
.
/
JSTests
/
es6
/
Array_is_subclassable_length_property_setting.js
blob: a8216a75ec1c1ea33644e5b7f43c99e3890d4b37 [
file
] [
log
] [
blame
]
function
test
()
{
class
C extends
Array
{}
var
c
=
new
C
();
c
[
2
]
=
'foo'
;
c
.
length
=
1
;
return
c
.
length
===
1
&&
!(
2
in c
);
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);