remove .then from dynamic import parser exception message (#8355)

This commit is contained in:
dnalborczyk 2018-07-21 02:26:17 -04:00 committed by Nicolò Ribaudo
parent adae1501ac
commit 8b10a44fe1
2 changed files with 2 additions and 2 deletions

View File

@ -964,7 +964,7 @@ export default class ExpressionParser extends LValParser {
} else if (!this.hasPlugin("importMeta")) { } else if (!this.hasPlugin("importMeta")) {
this.raise( this.raise(
id.start, id.start,
`Dynamic imports require a parameter: import('a.js').then`, `Dynamic imports require a parameter: import('a.js')`,
); );
} }
} }

View File

@ -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)"
} }