File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24692,15 +24692,15 @@ namespace ts {
24692
24692
return grammarErrorOnNode(node, Diagnostics.Dynamic_import_cannot_have_type_arguments);
24693
24693
}
24694
24694
24695
- const arguments = node.arguments;
24696
- if (arguments .length !== 1) {
24695
+ const nodeArguments = node.arguments;
24696
+ if (nodeArguments .length !== 1) {
24697
24697
return grammarErrorOnNode(node, Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument);
24698
24698
}
24699
24699
24700
24700
// see: parseArgumentOrArrayLiteralElement...we use this function which parse arguments of callExpression to parse specifier for dynamic import.
24701
24701
// parseArgumentOrArrayLiteralElement allows spread element to be in an argument list which is not allowed as specifier in dynamic import.
24702
- if (isSpreadElement(arguments [0])) {
24703
- return grammarErrorOnNode(arguments [0], Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element);
24702
+ if (isSpreadElement(nodeArguments [0])) {
24703
+ return grammarErrorOnNode(nodeArguments [0], Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element);
24704
24704
}
24705
24705
}
24706
24706
}
You can’t perform that action at this time.
0 commit comments