Skip to content

Commit d6bf27d

Browse files
committed
Correctly check spread assignments in strict mode
Previously it crashed in the binder.
1 parent 0d4ac01 commit d6bf27d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/binder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,7 @@ namespace ts {
15531553
const seen = createMap<ElementKind>();
15541554

15551555
for (const prop of node.properties) {
1556-
if (prop.name.kind !== SyntaxKind.Identifier) {
1556+
if (prop.kind === SyntaxKind.SpreadAssignment || prop.name.kind !== SyntaxKind.Identifier) {
15571557
continue;
15581558
}
15591559

0 commit comments

Comments
 (0)