remove .then from dynamic import parser exception message (#8355)
This commit is contained in:
parent
adae1501ac
commit
8b10a44fe1
@ -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')`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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)"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user