Skip to content

Commit

Permalink
remove .then from dynamic import parser exception message (babel#8355)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk authored and nicolo-ribaudo committed Jul 21, 2018
1 parent adae150 commit 8b10a44
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/expression.js
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ export default class ExpressionParser extends LValParser {
} else if (!this.hasPlugin("importMeta")) {
this.raise(
id.start,
`Dynamic imports require a parameter: import('a.js').then`,
`Dynamic imports require a parameter: import('a.js')`,
);
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"throws": "Dynamic imports require a parameter: import('a.js').then (2:9)"
"throws": "Dynamic imports require a parameter: import('a.js') (2:9)"
}

0 comments on commit 8b10a44

Please sign in to comment.