Skip to content

Commit 62d6cb1

Browse files
authored
Merge pull request #604 from mishoo/export-as-string
fix parsing export { foo as "bar" }
2 parents 9b90d31 + a8b1a5c commit 62d6cb1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js2-mode.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8984,7 +8984,8 @@ consumes no tokens."
89848984
(let ((name
89858985
(or
89868986
(and (js2-match-token js2-DEFAULT) "default")
8987-
(and (js2-match-token js2-NAME) (js2-current-token-string)))))
8987+
(and (js2-match-token js2-NAME) (js2-current-token-string))
8988+
(and (js2-match-token js2-STRING) (js2-current-token-string)))))
89888989
(if name
89898990
(let ((node (make-js2-export-binding-node
89908991
:pos beg

0 commit comments

Comments
 (0)