branch: master
commit 502c14aefdd7f38bb088a1994cbc42878c50d403
Author: Masafumi Oyamada (mooz) <[email protected]>
Commit: Masafumi Oyamada (mooz) <[email protected]>

    Use = instead of eq; Refs #185
---
 js2-mode.el |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/js2-mode.el b/js2-mode.el
index 1843fb2..ce9a012 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -9317,8 +9317,8 @@ If NODE is non-nil, it is the AST node associated with 
the symbol."
       ;; `js2-parse-function-stmt' nor `js2-parse-function-expr' that
       ;; interpret `async` token, we trash `async` and just remember
       ;; we met `async` keyword to `async-p'.
-      (when (and (eq tt js2-ASYNC)
-                 (not (eq (js2-peek-token) js2-FUNCTION)))
+      (when (and (= tt js2-ASYNC)
+                 (/= (js2-peek-token) js2-FUNCTION))
         (setq async-p t)
         (js2-get-token))
       ;; Save the tokenizer state in case we find an arrow function
@@ -9582,7 +9582,7 @@ to parse the operand (for prefix operators)."
      ((= tt js2-DELPROP)
       (js2-get-token)
       (js2-make-unary js2-DELPROP 'js2-parse-unary-expr))
-     ((eq tt js2-AWAIT)
+     ((= tt js2-AWAIT)
       (setq beg (js2-current-token-beg)
             end (js2-current-token-end))
       (js2-get-token)

Reply via email to