summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/errors/bug1745907.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/errors/bug1745907.js')
-rw-r--r--js/src/jit-test/tests/errors/bug1745907.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/errors/bug1745907.js b/js/src/jit-test/tests/errors/bug1745907.js
new file mode 100644
index 0000000000..8e5ed634bf
--- /dev/null
+++ b/js/src/jit-test/tests/errors/bug1745907.js
@@ -0,0 +1,12 @@
+var global;
+
+function foo() {
+ var x = BigInt(-1.7e+308);
+ try {
+ global = BigInt.asUintN(100000000, x);
+ } catch {}
+}
+for (var i = 0; i < 100; i++) {
+ foo()
+}
+assertEq(global, undefined)