]>
Commit | Line | Data |
---|---|---|
1 | function foo(a, b) { | |
2 | return a.f ^ b.f; | |
3 | } | |
4 | ||
5 | noInline(foo); | |
6 | ||
7 | for (var i = 0; i < 100000; ++i) { | |
8 | var result = foo({f:5.5}, {f:6.5}); | |
9 | if (result != 3) | |
10 | throw "Error: bad result: " + result; | |
11 | } | |
12 | ||
13 | var result = foo({f:"5.5"}, {f:6.5}); | |
14 | if (result != 3) | |
15 | throw "Error: bad result: " + result; | |
16 | ||
17 | var result = foo({f:5.5}, {f:"6.5"}); | |
18 | if (result != 3) | |
19 | throw "Error: bad result: " + result; | |
20 |