Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 try{} catch (x) {}
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 }
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();