Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / jit-test / tests / basic / testDenseArrayProp.js
1 function testDenseArrayProp()
2 {
3     [].__proto__.x = 1;
4     ({}).__proto__.x = 2;
5     var a = [[],[],[],({}).__proto__];
6     for (var i = 0; i < a.length; ++i)
7         uneval(a[i].x);
8     delete [].__proto__.x;
9     delete ({}).__proto__.x;
10     return "ok";
11 }
12 assertEq(testDenseArrayProp(), "ok");