Skip to content

Commit

Permalink
Update docs/parser.md
Browse files Browse the repository at this point in the history
Co-authored-by: Brian Ng <bng412@gmail.com>
  • Loading branch information
2 people authored and nicolo-ribaudo committed Apr 29, 2021
1 parent b065a1e commit 3696c36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/parser.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ const { parse } = require("@babel/parser");
const ast = parse(`a b`, { errorRecovery: true });

console.log(ast.errors[0].code); // BABEL_PARSER_SYNTAX_ERROR
console.log(ast.errors[0].reasoncCode); // MissingSemicolon
console.log(ast.errors[0].reasonCode); // MissingSemicolon
```

### FAQ
Expand Down

0 comments on commit 3696c36

Please sign in to comment.