diff --git a/lib/compiler/passes/generate-js.js b/lib/compiler/passes/generate-js.js index f90b3ba..c35d8c4 100644 --- a/lib/compiler/passes/generate-js.js +++ b/lib/compiler/passes/generate-js.js @@ -1039,7 +1039,7 @@ function generateJS(ast, options) { " }", "", " function expected(description, location) {", - " location = location !== undefined ? location : peg$computeLocation(peg$savedPos, peg$currPos)", + " location = location !== undefined ? location : peg$computeLocation(peg$savedPos, peg$currPos);", "", " throw peg$buildStructuredError(", " [peg$otherExpectation(description)],", @@ -1049,7 +1049,7 @@ function generateJS(ast, options) { " }", "", " function error(message, location) {", - " location = location !== undefined ? location : peg$computeLocation(peg$savedPos, peg$currPos)", + " location = location !== undefined ? location : peg$computeLocation(peg$savedPos, peg$currPos);", "", " throw peg$buildSimpleError(message, location);", " }", diff --git a/lib/parser.js b/lib/parser.js index 7c24457..738c1ae 100644 --- a/lib/parser.js +++ b/lib/parser.js @@ -509,7 +509,7 @@ function peg$parse(input, options) { } function expected(description, location) { - location = location !== undefined ? location : peg$computeLocation(peg$savedPos, peg$currPos) + location = location !== undefined ? location : peg$computeLocation(peg$savedPos, peg$currPos); throw peg$buildStructuredError( [peg$otherExpectation(description)], @@ -519,7 +519,7 @@ function peg$parse(input, options) { } function error(message, location) { - location = location !== undefined ? location : peg$computeLocation(peg$savedPos, peg$currPos) + location = location !== undefined ? location : peg$computeLocation(peg$savedPos, peg$currPos); throw peg$buildSimpleError(message, location); }