diff options
author | Justin Lau <justin@tclau.com> | 2013-05-05 20:38:32 +0800 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2013-05-08 16:22:48 +0300 |
commit | a1958aad563030b76bf4d9af7bf80a160c625e27 (patch) | |
tree | e0e370c5e661eff2268a3849ec1852602c9e5b66 /test | |
parent | 672699613e79c24d4e744313f5c0a51400958d8a (diff) | |
download | tracifyjs-a1958aad563030b76bf4d9af7bf80a160c625e27.tar.gz tracifyjs-a1958aad563030b76bf4d9af7bf80a160c625e27.zip |
Fixed typeof undefined optimization and updated related test case to
accomodates the sort behaviour changes made in commit
mishoo/UglifyJS2@aebafad41eab48f43ed649ce8c77e8f1528b50da.
Signed-off-by: Justin Lau <justin@tclau.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/issue-105.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/compress/issue-105.js b/test/compress/issue-105.js index 349d732d..0c37eb82 100644 --- a/test/compress/issue-105.js +++ b/test/compress/issue-105.js @@ -1,10 +1,9 @@ typeof_eq_undefined: { options = { - comparisons: true, - unsafe: false + comparisons: true }; input: { a = typeof b.c != "undefined" } - expect: { a = "undefined" != typeof b.c } + expect: { a = typeof b.c != "undefined" } } typeof_eq_undefined_unsafe: { |