]> code.delx.au - gnu-emacs-elpa/commitdiff
Fix a byte-compilation warning
authorDmitry Gutov <dgutov@yandex.ru>
Tue, 17 Nov 2015 01:08:22 +0000 (03:08 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Tue, 17 Nov 2015 01:09:28 +0000 (03:09 +0200)
js2-mode.el

index eb805e7b331e4c9d3619aafc23035365af7fcf77..7e5c9d836358fdbc86cbffb3a221aa01eb272133 100644 (file)
@@ -7754,7 +7754,7 @@ string is NAME.  Returns nil and keeps current token otherwise."
     (js2-get-token)
     t))
 
-(defun js2-match-await ()
+(defun js2-match-await (tt)
   (when (and (= tt js2-NAME)
              (js2-contextual-kwd-p (js2-current-token) "await"))
     (js2-record-face 'font-lock-keyword-face)
@@ -9953,7 +9953,7 @@ to parse the operand (for prefix operators)."
      ((= tt js2-DELPROP)
       (js2-get-token)
       (js2-make-unary js2-DELPROP 'js2-parse-unary-expr))
-     ((js2-match-await)
+     ((js2-match-await tt)
       (js2-make-unary js2-AWAIT 'js2-parse-unary-expr))
      ((= tt js2-ERROR)
       (js2-get-token)