From a3cc3a9b8740eb1bb03c7e4cf008c38ef5c4a60c Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sun, 19 Mar 2017 12:00:32 +0800 Subject: 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. --- test/compress/issue-640.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/compress/issue-640.js') 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: { -- cgit v1.2.3