Skip to content

Commit

Permalink
js2-property-key-string: Work when called on a static block
Browse files Browse the repository at this point in the history
Fixes #599
  • Loading branch information
dgutov committed Feb 21, 2024
1 parent ca0af32 commit e7373b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js2-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -11076,6 +11076,7 @@ represented as a string (e.g., the key is computed by an
expression)."
(cond
((js2-unary-node-p property-node) nil) ;; {...foo}
((js2-scope-p property-node) nil) ;; static {...}
(t
(let ((key (js2-infix-node-left property-node)))
(when (js2-computed-prop-name-node-p key)
Expand Down

0 comments on commit e7373b0

Please sign in to comment.