Update ProgramNode to better match SpiderMonkey
This commit is contained in:
@@ -7,12 +7,12 @@ Visitor.prototype = {
|
||||
return object && this[object.type] && this[object.type](object);
|
||||
},
|
||||
|
||||
program: function(program) {
|
||||
var statements = program.statements,
|
||||
Program: function(program) {
|
||||
var body = program.body,
|
||||
i, l;
|
||||
|
||||
for(i=0, l=statements.length; i<l; i++) {
|
||||
this.accept(statements[i]);
|
||||
for(i=0, l=body.length; i<l; i++) {
|
||||
this.accept(body[i]);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user