summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testScriptGetter_JSOP_GETLOCALPROP.js
blob: 1add26e6eba74d40ef672ffcd9b9d3da231779c5 (plain)
1
2
3
4
5
6
7
8
function test() {
    var a = {get p() { return 'q'; }};
    var s = '';
    for (var i = 0; i < 9; i++)
	s += a.p;
    assertEq(s, 'qqqqqqqqq');
}
test();