branch: externals/js2-mode
commit 6740d3472474b7d0b655b7675b4e7b6ef1f1454e
Author: babenhauserheide <[email protected]>
Commit: babenhauserheide <[email protected]>
fix tokencount + structure
---
js2-mode.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/js2-mode.el b/js2-mode.el
index 66cbbaa..304303e 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -654,7 +654,7 @@ which doesn't seem particularly useful, but Rhino permits
it."
(defvar js2-EXPON 172)
(defvar js2-NULLISH-COALESCING 173) ; nullish coalescing (obj.value ??
obj.defaultValue ?? 0))
-(defconst js2-num-tokens (1+ js2-EXPON))
+(defconst js2-num-tokens (1+ js2-NULLISH-COALESCING))
(defconst js2-debug-print-trees nil)
@@ -5137,7 +5137,7 @@ You should use `js2-print-tree' instead of this function."
(js2-node-has-side-effects (js2-infix-node-right node)))
((or (= tt js2-AND)
(= tt js2-OR)
- (= tt js2-NULLISH-COALESCING)
+ (= tt js2-NULLISH-COALESCING))
(or (js2-node-has-side-effects (js2-infix-node-right node))
(js2-node-has-side-effects (js2-infix-node-left node))))
((= tt js2-HOOK)