fix parsing of expect_stdout (#2096)

fixes #2095
This commit is contained in:
Alex Lam S.L
2017-06-15 01:00:03 +08:00
committed by alexlamsl
parent c28056d7ed
commit 7cc03d4d40

View File

@@ -294,7 +294,6 @@ function parse_test(file) {
if (label.name == "expect_exact" || label.name == "node_version") {
test[label.name] = read_string(stat);
} else if (label.name == "expect_stdout") {
if (stat.TYPE == "SimpleStatement") {
var body = stat.body;
if (body instanceof U.AST_Boolean) {
test[label.name] = body.value;
@@ -311,7 +310,6 @@ function parse_test(file) {
}));
return node.value;
}));
}
} else {
test[label.name] = read_string(stat) + "\n";
}