diff options
Diffstat (limited to 'js/src/jit-test/tests/ion/bug1528818.js')
-rw-r--r-- | js/src/jit-test/tests/ion/bug1528818.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug1528818.js b/js/src/jit-test/tests/ion/bug1528818.js new file mode 100644 index 0000000000..3a49e3f468 --- /dev/null +++ b/js/src/jit-test/tests/ion/bug1528818.js @@ -0,0 +1,11 @@ +function getarg(x) { + return arguments[x] +} +function f() { + var r = 0n; + for (var i=0;i<2000;++i) { + r += getarg(1+(i & 1), BigInt(0), 1n); + } + return r; +} +for (var i=0;i<2;++i) print(f()) |