summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testDenseArrayProp.js
blob: 1ccb2e84d024a2755df0c95d9d07e2bae7c10850 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function testDenseArrayProp()
{
    [].__proto__.x = 1;
    ({}).__proto__.x = 2;
    var a = [[],[],[],({}).__proto__];
    for (var i = 0; i < a.length; ++i)
        uneval(a[i].x);
    delete [].__proto__.x;
    delete ({}).__proto__.x;
    return "ok";
}
assertEq(testDenseArrayProp(), "ok");