]> code.delx.au - gnu-emacs-elpa/commitdiff
Use = instead of eq; Refs #185
authorMasafumi Oyamada (mooz) <stillpedant@gmail.com>
Sat, 3 Jan 2015 11:56:55 +0000 (20:56 +0900)
committerMasafumi Oyamada (mooz) <stillpedant@gmail.com>
Sat, 3 Jan 2015 11:56:55 +0000 (20:56 +0900)
js2-mode.el

index 1843fb2574d659b6bbde79e2f2b2bfc501540ea1..ce9a012040b96a69ca4e31118560603454aa7f05 100644 (file)
@@ -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)