Correctly check spread assignments in strict mode

Previously it crashed in the binder.
This commit is contained in:
Nathan Shively-Sanders
2016-11-10 11:46:10 -08:00
parent 0d4ac01574
commit d6bf27d6b6

View File

@@ -1553,7 +1553,7 @@ namespace ts {
const seen = createMap<ElementKind>();
for (const prop of node.properties) {
if (prop.name.kind !== SyntaxKind.Identifier) {
if (prop.kind === SyntaxKind.SpreadAssignment || prop.name.kind !== SyntaxKind.Identifier) {
continue;
}