Permalink
Browse files

fix node creation for empty program

  • Loading branch information...
zaach committed Jul 6, 2011
1 parent 6cd689c commit a8380a61b81dba041e9775f1cc4363079525e8db
Showing with 9 additions and 8 deletions.
  1. +1 −1 lib/grammar.y
  2. +7 −7 standalone/reflect.js
  3. +1 −0 test/reflect-parse.js
View
@@ -1066,7 +1066,7 @@ FunctionBody
Program
:
- { return yy.Node('Program'); }
+ { return yy.Node('Program',[],yy.loc(@$)); }
| SourceElements
{ return yy.Node('Program',$1,yy.loc(@1)); }
;
Oops, something went wrong.

0 comments on commit a8380a6

Please sign in to comment.