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