// Skip (non-executed) functions
if (node instanceof AST_Scope) return node;
// Stop upon collision with block-scoped variables
- if (node.variables && !node.variables.all(function(def) {
+ if (!(node.variables && node.variables.all(function(def) {
return !lvalues.has(def.name);
- })) {
+ }))) {
abort = true;
return node;
}
make_block(stat, output);
} else if (!stat || stat instanceof AST_EmptyStatement) {
output.force_semicolon();
- } else if (stat instanceof AST_Const) {
- make_block(stat, output);
} else {
stat.print(output);
}