aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2021-03-15 22:52:21 +0000
committerGitHub <noreply@github.com>2021-03-16 06:52:21 +0800
commitaa6e33e2085da5ee9254910726a5bd7caac43dcc (patch)
tree0a4c5832062cc30b013671cda324ed7600d24ae6 /test/compress
parent176581d732276df1578f1eb98e722ec3b5f52bbd (diff)
downloadtracifyjs-aa6e33e2085da5ee9254910726a5bd7caac43dcc.tar.gz
tracifyjs-aa6e33e2085da5ee9254910726a5bd7caac43dcc.zip
parse out-of-range numerals correctly (#4781)
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/numbers.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/compress/numbers.js b/test/compress/numbers.js
index d7c0360c..dced3f16 100644
--- a/test/compress/numbers.js
+++ b/test/compress/numbers.js
@@ -1,3 +1,10 @@
+literal_infinity: {
+ input: {
+ console.log(2e308, -1e2345);
+ }
+ expect_exact: "console.log(1/0,-(1/0));"
+}
+
parentheses_for_prototype_functions: {
beautify = {
beautify: true,