summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testInterpreterReentry7.js
blob: 36b34c6f0cdece89396ef8739b9777dfe6bfce73 (plain)
1
2
3
4
5
6
7
8
9
10
11
function testInterpreterReentry7() {
    var arr = [0, 1, 2, 3, 4];
    arr.__defineSetter__("4", function(x) { this._4 = x; });
    for (var i = 0; i < 5; i++)
        arr[i] = "grue";
    var tmp = arr._4;
    for (var p in arr)
        arr[p] = "bleen";
    return tmp + " " + arr._4;
}
assertEq(testInterpreterReentry7(), "grue bleen");