ed1e77d3 A |
1 | function foo(p) { |
2 | var x = p ? null : void 0; |
3 | return (typeof x) == "object"; |
4 | } |
5 | |
6 | noInline(foo); |
7 | |
8 | for (var i = 0; i < 10000; ++i) { |
9 | var p = !!(i & 1); |
10 | var result = foo(p); |
11 | if (result !== p) |
12 | throw "Error: bad result for p = " + p + ": " + result; |
13 | } |