Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

Commit 12ae181

Browse files
fix: handle Literal types as ObjectPattern keys #25
1 parent 1387dd3 commit 12ae181

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/attachScopes.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ const blockDeclarations = {
66
};
77

88
const extractors = {
9+
Literal ( names, param ) {
10+
names.push( param.value );
11+
},
12+
913
Identifier ( names, param ) {
1014
names.push( param.name );
1115
},

0 commit comments

Comments
 (0)