Skip to content

Commit

Permalink
B
Browse files Browse the repository at this point in the history
  • Loading branch information
tolmasky committed Jan 17, 2022
1 parent d938cb7 commit 99fa96b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/babel-parser/src/parser/error.js
Expand Up @@ -112,7 +112,7 @@ export default class ParserError extends CommentsParser {
...params: any
): Error | empty {
// $FlowIgnore[incompatible-type] We know this exists, so it can't be undefined.
const pos:number = indexes.get(loc);
const pos: number = indexes.get(loc);
const message =
template.replace(/%(\d+)/g, (_, i: number) => params[i]) +
` (${loc.line}:${loc.column})`;
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-parser/src/tokenizer/index.js
Expand Up @@ -1499,7 +1499,7 @@ export default class Tokenizer extends ParserErrors {

recordStrictModeErrors(message: ErrorTemplate, loc: Position) {
// $FlowIgnore[incompatible-type] We know this exists, so it can't be undefined.
const index:number = indexes.get(loc);
const index: number = indexes.get(loc);
if (this.state.strict && !this.state.strictErrors.has(index)) {
this.raise(message, { at: loc });
} else {
Expand Down

0 comments on commit 99fa96b

Please sign in to comment.