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

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:626d9641f101
1 function testMethodInit() { // bug 503198
2 function o() { return 'o'; }
3 function k() { return 'k'; }
4
5 var x;
6 for (var i = 0; i < 10; i++)
7 x = {o: o, k: k};
8 return x.o() + x.k();
9 }
10 assertEq(testMethodInit(), "ok");

mercurial