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
sosukesuzuki and existentialism committed Apr 14, 2021
1 parent 87332c9 commit d4867de
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 d4867de

Please sign in to comment.