|
|
|
@ -782,8 +782,11 @@ function generateJavascript(ast, options) {
|
|
|
|
|
' this.expected = expected;',
|
|
|
|
|
' this.found = found;',
|
|
|
|
|
' this.location = location;',
|
|
|
|
|
'',
|
|
|
|
|
' this.name = "SyntaxError";',
|
|
|
|
|
'',
|
|
|
|
|
' if (typeof Error.captureStackTrace === "function") {',
|
|
|
|
|
' Error.captureStackTrace(this, peg$SyntaxError);',
|
|
|
|
|
' }',
|
|
|
|
|
' }',
|
|
|
|
|
'',
|
|
|
|
|
' peg$subclass(peg$SyntaxError, Error);',
|
|
|
|
|