diff options
Diffstat (limited to 'js/src/jit-test/tests/ion/bug799185-8.js')
-rw-r--r-- | js/src/jit-test/tests/ion/bug799185-8.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug799185-8.js b/js/src/jit-test/tests/ion/bug799185-8.js new file mode 100644 index 0000000000..b84bcab9ee --- /dev/null +++ b/js/src/jit-test/tests/ion/bug799185-8.js @@ -0,0 +1,19 @@ +// |jit-test| error: TypeError +function testBitOrInconvertibleObjectInconvertibleObject() { + var o1 = {}; + var count2 = 0; + function toString2() { + ++count2; + if (count2 == 95) return {}; + } + var o2 = { toString: toString2 }; + try { + for (var i = 0; i < 100; i++) + var q = o1 | o2; + } catch (e) { + if (i !== 94) + return gc(); + this.bar.foo ^ this + } +} +testBitOrInconvertibleObjectInconvertibleObject() |