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