diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/ion/bug1655940-1.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug1655940-1.js b/js/src/jit-test/tests/ion/bug1655940-1.js new file mode 100644 index 0000000000..34880823cc --- /dev/null +++ b/js/src/jit-test/tests/ion/bug1655940-1.js @@ -0,0 +1,14 @@ +function f(t) { + for (var i = 0; i < 2; i++) { + try { + var x = 1; + new Int32Array(1); + x = 2; + new Int32Array(t); + } catch (e) { + assertEq(x, 2); + } + } +} +f(1); +f(-1); |