comparison: js/src/jit-test/tests/basic/testRebranding.js
js/src/jit-test/tests/basic/testRebranding.js
- branch
- TOR_BUG_9701
- changeset 15
- b8a032363ba2
equal
deleted
inserted
replaced
|
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"); |