aboutsummaryrefslogtreecommitdiff
path: root/test/compress/functions.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/functions.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/functions.js')
-rw-r--r--test/compress/functions.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/compress/functions.js b/test/compress/functions.js
index a1a515a1..dca40623 100644
--- a/test/compress/functions.js
+++ b/test/compress/functions.js
@@ -39,6 +39,7 @@ iifes_returning_constants_keep_fargs_true: {
console.log(6);
console.log((a(), b(), 6));
}
+ expect_stdout: true
}
iifes_returning_constants_keep_fargs_false: {
@@ -73,6 +74,7 @@ iifes_returning_constants_keep_fargs_false: {
console.log(6);
console.log((a(), b(), 6));
}
+ expect_stdout: true
}
issue_485_crashing_1530: {