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();