Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ParseError Much Simpler now that we can use TypeScript #14796

Merged
merged 8 commits into from
Jul 25, 2022
Prev Previous commit
Use const enum for ParseErrorCode.
Reviewed by @tolmasky.
  • Loading branch information
tolmasky committed Jul 25, 2022
commit c5f4bba84657ec7dbcc8cea7a37ff77cf2be74cc
2 changes: 1 addition & 1 deletion packages/babel-parser/src/parse-error/credentials.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export enum ParseErrorCode {
export const enum ParseErrorCode {
SyntaxError = "BABEL_PARSER_SYNTAX_ERROR",
SourceTypeModuleError = "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",
}
Expand Down