better shorthand detection

pull/1673/head
James Birtles 6 years ago
parent 404587d991
commit 1d9ab99a9f

@ -87,7 +87,7 @@ export default function readContext(parser: Parser) {
end: value.end,
type: 'Property',
kind: 'init',
shorthand: key === value,
shorthand: value.type === 'Identifier' && value.name === name,
key,
value
};

Loading…
Cancel
Save