summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/mathRoundBig.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/mathRoundBig.js')
-rw-r--r--js/src/jit-test/tests/basic/mathRoundBig.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/mathRoundBig.js b/js/src/jit-test/tests/basic/mathRoundBig.js
new file mode 100644
index 000000000..e01ffa4f5
--- /dev/null
+++ b/js/src/jit-test/tests/basic/mathRoundBig.js
@@ -0,0 +1,10 @@
+/*
+ * Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/licenses/publicdomain/
+ */
+
+assertEq(Math.round(9007199254740991), 9007199254740991);
+assertEq(Math.round(-19007199254740990), -19007199254740990);
+
+assertEq(Math.round("9007199254740991"), 9007199254740991);
+assertEq(Math.round("-19007199254740990"), -19007199254740990);