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 9e98a17 commit 7832ce6
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 @@ -299,7 +299,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 7832ce6

Please sign in to comment.