Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / jit-test / tests / basic / testRebranding.js
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");