Skip to content

Commit 9203f95

Browse files
author
Yui T
committed
Update name change of isSpreadExpression
1 parent 2f476bf commit 9203f95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24680,7 +24680,7 @@ namespace ts {
2468024680

2468124681
// see: parseArgumentOrArrayLiteralElement...we use this function which parse arguments of callExpression to parse specifier for dynamic import.
2468224682
// parseArgumentOrArrayLiteralElement allows spread element to be in an argument list which is not allowed as specifier in dynamic import.
24683-
if (isSpreadExpression(arguments[0])) {
24683+
if (isSpreadElement(arguments[0])) {
2468424684
return grammarErrorOnNode(arguments[0], Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element);
2468524685
}
2468624686
}

0 commit comments

Comments
 (0)