summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testScriptGetter_JSOP_GETPROP.js
blob: 963c506c480030bf7c4f923f38a98bdef4f7abc8 (plain)
1
2
3
4
5
6
7
8
var a = {get p() { return 11; }};

function f() { return a; }

var g = 0;
for (var i = 0; i < 9; i++)
    g += f().p;
assertEq(g, 99);