diff --git a/packages/helpers-lib/parse-code-chunk-to-AST.js b/packages/helpers-lib/parse-code-chunk-to-AST.js index 9e1c1840a..75490e5b7 100644 --- a/packages/helpers-lib/parse-code-chunk-to-AST.js +++ b/packages/helpers-lib/parse-code-chunk-to-AST.js @@ -87,7 +87,7 @@ function checkActionBlock(src, yylloc) { // make sure reasonable line numbers, etc. are reported in any // potential parse errors by pushing the source code down: if (yylloc && yylloc.first_line > 0) { - var cnt = yylloc.first_line + 1; + var cnt = yylloc.first_line; var lines = new Array(cnt); src = lines.join('\n') + src; }