js/src/jit-test/tests/basic/testRebranding.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:1273f8428929
1 q = "";
2 function g() { q += "g"; }
3 function h() { q += "h"; }
4 a = [g, g, g, g, h];
5 for (i=0; i<5; i++) { f = a[i]; f(); }
6
7 function testRebranding() {
8 return q;
9 }
10 assertEq(testRebranding(), "ggggh");

mercurial