branch: master
commit 97065c87de971e85a0981dced70c8cc420c51611
Author: Jackson Hamilton <[email protected]>
Commit: Jackson Hamilton <[email protected]>
Fix compiler warning
---
js2-mode.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/js2-mode.el b/js2-mode.el
index 049fd8d..3050417 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -7753,6 +7753,9 @@ string is NAME. Returns nil and keeps current token
otherwise."
(and (js2-contextual-kwd-p (js2-current-token) "async")
(/= (js2-peek-token) js2-FUNCTION)))
+(defsubst js2-inside-function ()
+ (cl-plusp js2-nesting-of-function))
+
(defun js2-parse-await-maybe (tt)
"Parse \"await\" as an AwaitExpression, if it is one."
(let (pn post-parse-ts-state)
@@ -7837,9 +7840,6 @@ Returns t on match, nil if no match."
(js2-unget-token))
nil))
-(defsubst js2-inside-function ()
- (cl-plusp js2-nesting-of-function))
-
(defun js2-set-requires-activation ()
(if (js2-function-node-p js2-current-script-or-fn)
(setf (js2-function-node-needs-activation js2-current-script-or-fn) t)))