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