emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/js2-mode e7373b0e08 1/2: js2-property-key-string: Work


From: ELPA Syncer
Subject: [elpa] externals/js2-mode e7373b0e08 1/2: js2-property-key-string: Work when called on a static block
Date: Wed, 21 Feb 2024 00:58:11 -0500 (EST)

branch: externals/js2-mode
commit e7373b0e0891b2521d8f9b9862b77607317b2f39
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@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

[Prev in Thread] Current Thread [Next in Thread]