Skip to content

Commit

Permalink
refacotr: use error message template in flow plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Mar 3, 2020
1 parent 8c17114 commit 0b8d5ca
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 0b8d5ca

Please sign in to comment.