summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testScriptGetter_JSOP_CALLPROP.js
blob: d16895e15d790ff97550cad1de280299b9189b4a (plain)
1
2
3
4
5
6
7
8
9
var a = {_val: 'q',
	 get p() { return f; }};

function f() { return this._val; }

var g = '';
for (var i = 0; i < 9; i++)
    g += a.p();
assertEq(g, 'qqqqqqqqq');