diff --git a/src/parse/read/context.ts b/src/parse/read/context.ts index 51bce0a754..e7a1523f2a 100644 --- a/src/parse/read/context.ts +++ b/src/parse/read/context.ts @@ -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 };