]>
Commit | Line | Data |
---|---|---|
ed1e77d3 A |
1 | function foo(p, q) { |
2 | var o = {}; | |
3 | if (p) o.f = 42; | |
4 | if (q) { o.f++; return o; } | |
5 | } | |
6 | noInline(foo); | |
7 | ||
8 | var expected = foo(false, true).f; | |
9 | ||
10 | for (var i = 0; i < 1000000; i++) { | |
11 | foo(true, true); | |
12 | } | |
13 | ||
14 | var result = foo(false, true).f; | |
15 | ||
16 | if (!Object.is(result, expected)) | |
17 | throw "Error: expected " + expected + "; FTL produced " + result; |