aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-640.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-03-19 12:00:32 +0800
committerGitHub <noreply@github.com>2017-03-19 12:00:32 +0800
commita3cc3a9b8740eb1bb03c7e4cf008c38ef5c4a60c (patch)
tree4f8d7f528fa5a4febb1ba969b226ef44fab62659 /test/compress/issue-640.js
parent96f8befdd7dbc3be9f5991f805ad8d60dfb3e6d6 (diff)
downloadtracifyjs-a3cc3a9b8740eb1bb03c7e4cf008c38ef5c4a60c.tar.gz
tracifyjs-a3cc3a9b8740eb1bb03c7e4cf008c38ef5c4a60c.zip
make `expect_stdout` work on Node.js 0.12 (#1623)
That particular version of Node.js has messed up error messages, so provide a version-specific workaround. Also fixed an formatting issue which would cause `expect_stdout` to fail if error message contains excerpts of input. Apply `expect_stdout` to more applicable tests.
Diffstat (limited to 'test/compress/issue-640.js')
-rw-r--r--test/compress/issue-640.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/compress/issue-640.js b/test/compress/issue-640.js
index dd3f3f21..fbf5f37f 100644
--- a/test/compress/issue-640.js
+++ b/test/compress/issue-640.js
@@ -48,6 +48,7 @@ dead_code_const_annotation_regex: {
var CONST_FOO_ANN = !1;
if (CONST_FOO_ANN) console.log('reachable');
}
+ expect_stdout: true
}
drop_console_2: {
@@ -225,6 +226,7 @@ issue_1254_negate_iife_true: {
})()();
}
expect_exact: '(function(){return function(){console.log("test")}})()();'
+ expect_stdout: true
}
issue_1254_negate_iife_nested: {
@@ -240,6 +242,7 @@ issue_1254_negate_iife_nested: {
})()()()()();
}
expect_exact: '(function(){return function(){console.log("test")}})()()()()();'
+ expect_stdout: true
}
conditional: {