aboutsummaryrefslogtreecommitdiff
path: root/test/compress/properties.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-03-29 18:31:55 +0800
committerGitHub <noreply@github.com>2017-03-29 18:31:55 +0800
commit09f77c7d4d37350102c36b270b553f45e706d0c8 (patch)
tree39d2af90ff895ad55db168069f6b3c8ac4bc959f /test/compress/properties.js
parentfef0bf9ee0367f07dfbca26b144c2995c2b5db5f (diff)
downloadtracifyjs-09f77c7d4d37350102c36b270b553f45e706d0c8.tar.gz
tracifyjs-09f77c7d4d37350102c36b270b553f45e706d0c8.zip
output optimal representations of NaN & Infinity (#1723)
- move these optimisations out from `Compressor` to `OutputStream` - fixes behaviour inconsistency when running uglified code from global or module levels due to redefinition
Diffstat (limited to 'test/compress/properties.js')
-rw-r--r--test/compress/properties.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/compress/properties.js b/test/compress/properties.js
index 29bdfe2a..376fb9e2 100644
--- a/test/compress/properties.js
+++ b/test/compress/properties.js
@@ -77,7 +77,7 @@ sub_properties: {
a[3.14] = 3;
a.if = 4;
a["foo bar"] = 5;
- a[NaN] = 6;
+ a[0/0] = 6;
a[null] = 7;
a[void 0] = 8;
}