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.
This commit is contained in:
Alex Lam S.L
2017-03-19 12:00:32 +08:00
committed by GitHub
parent 96f8befdd7
commit a3cc3a9b87
20 changed files with 89 additions and 6 deletions

View File

@@ -162,4 +162,5 @@ regexp_literal_not_const: {
while (result = REGEXP_LITERAL.exec("acdabcdeabbb")) console.log(result[0]);
})();
}
expect_stdout: true
}