Skip to content

Commit 9667be5

Browse files
committed
lhs test
1 parent f9fdd4d commit 9667be5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/abstract_syntax_tree.coffee

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2391,6 +2391,19 @@ test "AST as expected for Assign node", ->
23912391
left:
23922392
type: 'ObjectPattern'
23932393

2394+
testExpression '{"#{a}": b} = c',
2395+
left:
2396+
type: 'ObjectPattern'
2397+
properties: [
2398+
type: 'ObjectProperty'
2399+
key:
2400+
type: 'TemplateLiteral'
2401+
expressions: [
2402+
ID 'a'
2403+
]
2404+
computed: yes
2405+
]
2406+
23942407
test "AST as expected for Code node", ->
23952408
testExpression '=>',
23962409
type: 'ArrowFunctionExpression'

0 commit comments

Comments
 (0)