hint that brackets may be required in AST_BlockStatement

This commit is contained in:
Mihai Bazon
2012-08-21 16:27:57 +03:00
parent ffe58a9961
commit 1b839eb35b
4 changed files with 16 additions and 18 deletions

View File

@@ -7,7 +7,7 @@ AST_Toplevel.DEFMETHOD("figure_out_scope", function(){
// times on the same tree.
// pass 1: setup scope chaining and handle definitions
var scope = null;
var scope = this.parent_scope;
var labels = {};
var tw = new TreeWalker(function(node, descend){
if (node instanceof AST_Scope) {