general clean-ups (#3175)

This commit is contained in:
Alex Lam S.L
2018-06-06 17:50:56 +08:00
committed by GitHub
parent bce7ee5f6a
commit 9e19e63551
24 changed files with 839 additions and 974 deletions

View File

@@ -210,7 +210,7 @@ function run_compress_tests() {
}
}
}
files.forEach(function(file){
files.forEach(function(file) {
test_file(file);
});
}
@@ -228,7 +228,7 @@ function parse_test(file) {
throw e;
}
var tests = {};
var tw = new U.TreeWalker(function(node, descend){
var tw = new U.TreeWalker(function(node, descend) {
if (node instanceof U.AST_LabeledStatement
&& tw.parent() instanceof U.AST_Toplevel) {
var name = node.label.name;
@@ -271,7 +271,7 @@ function parse_test(file) {
function get_one_test(name, block) {
var test = { name: name, options: {} };
var tw = new U.TreeWalker(function(node, descend){
var tw = new U.TreeWalker(function(node, descend) {
if (node instanceof U.AST_Assign) {
if (!(node.left instanceof U.AST_SymbolRef)) {
croak(node);