diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-06-13 01:40:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-13 01:40:14 +0800 |
commit | 2bdc8802ddd913a8b3b921426e898fc2f2257265 (patch) | |
tree | 8ae7323ea65471a23575fea7b3f337bdf3c0891b /test/compress/issue-281.js | |
parent | 5ef7cb372abf82f28d7f1b014fd0ddb2ef5bdec8 (diff) | |
download | tracifyjs-2bdc8802ddd913a8b3b921426e898fc2f2257265.tar.gz tracifyjs-2bdc8802ddd913a8b3b921426e898fc2f2257265.zip |
fix variable accounting in `inline` (#2085)
fixes #2084
Diffstat (limited to 'test/compress/issue-281.js')
-rw-r--r-- | test/compress/issue-281.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/compress/issue-281.js b/test/compress/issue-281.js index 7a6c03bc..9b8c8bfd 100644 --- a/test/compress/issue-281.js +++ b/test/compress/issue-281.js @@ -151,7 +151,7 @@ negate_iife_4: { })(); } expect: { - t ? console.log(true) : console.log(false), console.log("something"), void 0; + t ? console.log(true) : console.log(false), void console.log("something"); } } @@ -174,7 +174,7 @@ negate_iife_5: { })(); } expect: { - t ? foo(true) : bar(false), console.log("something"), void 0; + t ? foo(true) : bar(false), void console.log("something"); } } @@ -197,7 +197,7 @@ negate_iife_5_off: { })(); } expect: { - t ? foo(true) : bar(false), console.log("something"), void 0; + t ? foo(true) : bar(false), void console.log("something"); } } @@ -214,7 +214,7 @@ issue_1254_negate_iife_true: { }; })()(); } - expect_exact: 'console.log("test"),void 0;' + expect_exact: 'void console.log("test");' expect_stdout: true } @@ -231,7 +231,7 @@ issue_1254_negate_iife_nested: { }; })()()()()(); } - expect_exact: '(console.log("test"),void 0)()()();' + expect_exact: '(void console.log("test"))()()();' } negate_iife_issue_1073: { @@ -382,7 +382,7 @@ wrap_iife: { }; })()(); } - expect_exact: 'console.log("test"),void 0;' + expect_exact: 'void console.log("test");' } wrap_iife_in_expression: { @@ -416,7 +416,7 @@ wrap_iife_in_return_call: { })(); })()(); } - expect_exact: '(console.log("test"),void 0)();' + expect_exact: '(void console.log("test"))();' } pure_annotation: { |