Reviewed by Maciej.
[WebKit-https.git] / JavaScriptCore / kjs / grammar.y
index 3b43d7c401b4c4a309137feb094bc2de2d140ac4..ec8785d556e6a5a2e71ada5b75cae4265ed37211 100644 (file)
@@ -879,8 +879,8 @@ FunctionBody:
 ;
 
 Program:
-    /* not in spec */                   { parser().didFinishParsing(new SourceElements); }
-    | SourceElements                    { parser().didFinishParsing($1->release()); }
+    /* not in spec */                   { parser().didFinishParsing(new SourceElements, @$.last_line); }
+    | SourceElements                    { parser().didFinishParsing($1->release(), @$.last_line); }
 ;
 
 SourceElements: