emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 0b09004 04/31: Drop msg.yield.parenthesized error


From: Dmitry Gutov
Subject: [elpa] master 0b09004 04/31: Drop msg.yield.parenthesized error
Date: Fri, 21 Jul 2017 09:04:54 -0400 (EDT)

branch: master
commit 0b0900443629d7bfa5cb48522bf1b7b1f88678c6
Author: Carl Lei <address@hidden>
Commit: Carl Lei <address@hidden>

    Drop msg.yield.parenthesized error
---
 js2-mode.el | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/js2-mode.el b/js2-mode.el
index 2848a2c..acee6d7 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -1359,9 +1359,6 @@ the correct number of ARGS must be provided."
 (js2-msg "msg.bad.yield"
          "yield must be in a function.")
 
-(js2-msg "msg.yield.parenthesized"
-         "yield expression must be parenthesized.")
-
 (js2-msg "msg.bad.await"
          "await must be in async functions.")
 
@@ -9772,8 +9769,6 @@ If NODE is non-nil, it is the AST node associated with 
the symbol."
     (while (and (not oneshot)
                 (js2-match-token js2-COMMA))
       (setq op-pos (- (js2-current-token-beg) pos))  ; relative
-      (if (= (js2-peek-token) js2-YIELD)
-          (js2-report-error "msg.yield.parenthesized"))
       (setq right (js2-parse-assign-expr)
             left pn
             pn (make-js2-infix-node :type js2-COMMA
@@ -10162,8 +10157,6 @@ Returns the list in reverse order.  Consumes the 
right-paren token."
     (unless (js2-match-token js2-RP)
       (cl-loop do
                (let ((tt (js2-get-token)))
-                 (if (= tt js2-YIELD)
-                     (js2-report-error "msg.yield.parenthesized"))
                  (if (and (= tt js2-TRIPLEDOT)
                           (>= js2-language-version 200))
                      (push (js2-make-unary tt 'js2-parse-assign-expr) result)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]