js/src/jit-test/tests/ion/bug732847.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:3b37bcb7eac1
1 try{} catch (x) {}
2
3 var callStack = [];
4 function currentFunc() {
5 return callStack[0];
6 }
7 function reportFailure () {
8 var funcName = currentFunc();
9 // play with the result to cause a SEGV.
10 var prefix = (funcName) ? funcName : "";
11 // Use OSR to compile the function at the end of the first run.
12 for (var i=0; i < 50; i++) ;
13 }
14
15 callStack[0] = 'test';
16 // Run and compile with a string as result of currentFunc.
17 reportFailure();
18 callStack[0] = undefined;
19 // Use previously compiled code with the string assumption.
20 reportFailure();

mercurial