Skip to content

Commit

Permalink
refacotr: use error message tempalte in flow plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Mar 2, 2020
1 parent 820e44c commit 3321481
Show file tree
Hide file tree
Showing 2 changed files with 148 additions and 116 deletions.
1 change: 1 addition & 0 deletions packages/babel-parser/src/parser/location.js
Expand Up @@ -16,6 +16,7 @@ type ErrorContext = {
code?: string,
};

// The Errors key follows https://cs.chromium.org/chromium/src/v8/src/common/message-template.h unless it does not exist
export const Errors = Object.freeze({
ArgumentsDisallowedInInitializer:
"'arguments' is not allowed in class field initializer",
Expand Down

0 comments on commit 3321481

Please sign in to comment.