This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
Destructuring assignment missing from converted AST #332
Closed
Description
What version of TypeScript are you using?
2.4.0
What version of typescript-eslint-parser
are you using?
ts-2.4
branch
What code were you trying to parse?
({ foo = [] } = bar);
What did you expect to happen?
The equalsToken
and objectAssignmentInitializer
from the ShorthandPropertyAssignment
node should be converted to an AssignmentPattern
on the value
property of the converted Property
.
What happened?
Both the key
and the value
in the converted Property
are foo
Identifier
s.
https://github.com/estree/estree/blob/master/es2015.md#objectpattern