WSL should have more tests of type checking failures
[WebKit-https.git] / JSTests / es6 / Array_is_subclassable_length_property_accessing.js
1 function test() {
2
3 class C extends Array {}
4 var c = new C();
5 var len1 = c.length;
6 c[2] = 'foo';
7 var len2 = c.length;
8 return len1 === 0 && len2 === 3;
9       
10 }
11
12 if (!test())
13     throw new Error("Test failed");
14