branch: externals/js2-mode
commit e7373b0e0891b2521d8f9b9862b77607317b2f39
Author: Dmitry Gutov <dmi...@gutov.dev>
Commit: Dmitry Gutov <dmi...@gutov.dev>

    js2-property-key-string: Work when called on a static block
    
    Fixes #599
---
 js2-mode.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/js2-mode.el b/js2-mode.el
index 6d9f68a65e..9961a72b53 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -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)

Reply via email to