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 var causeOSI = true;
3 function rec(x, self) {
4 if (x === 0 || x !== x) {
5 if (causeOSI) {
6 causeOSI = false;
7 self(NaN, self)
8 causeOSI = true;
9 }
10 return;
11 }
12 self(x - 1, self);
13 }
15 // Use enough iterations to type infer the script.
16 causeOSI = false;
17 for (var i = 0; i < 20; ++i)
18 rec(1, rec);
19 causeOSI = true;
21 rec(2, rec)