summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/pic/call_self.js
blob: 0709b23472348205c3449395ca710152389dda0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var o = {
    g: function(a) {
	return a;
    }
};

function f() {
    var z;
    for (var i = 0; i < 10; ++i) {
	z = o.g(i);
	assertEq(z, i);
    }
}

f();