Skip to content

Commit d1b5334

Browse files
committed
Make handleObjectNodeWhichMayBeAExpression slightly more correct
1 parent 9dfcf92 commit d1b5334

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/language/semantics/expression-elaboration.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ const handleObjectNodeWhichMayBeAExpression = (
161161
const { 0: possibleKeyword, ...possibleArguments } = node
162162
return isKeyword(possibleKeyword)
163163
? context.keywordHandlers[possibleKeyword](
164-
makeObjectNode({ ...possibleArguments, 0: possibleKeyword }),
164+
makeUnelaboratedObjectNode({
165+
...possibleArguments,
166+
0: possibleKeyword,
167+
}),
165168
context,
166169
)
167170
: /^@[^@]/.test(possibleKeyword)

0 commit comments

Comments
 (0)