summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testRebranding.js
blob: f21fc5c192d85012cd6e52bf7481dfb2ab132fb3 (plain)
1
2
3
4
5
6
7
8
9
10
q = "";
function g() { q += "g"; }
function h() { q += "h"; }
a = [g, g, g, g, h];
for (i=0; i<5; i++) { f = a[i];  f(); }

function testRebranding() {
    return q;
}
assertEq(testRebranding(), "ggggh");