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, end: value.end,
type: 'Property', type: 'Property',
kind: 'init', kind: 'init',
shorthand: key === value, shorthand: value.type === 'Identifier' && value.name === name,
key, key,
value value
}; };

Loading…
Cancel
Save