[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)
- [elpa] master updated (a69e424 -> 231ac7f), Dmitry Gutov, 2017/07/21
- [elpa] master da4793e 02/31: ignored warning support, Dmitry Gutov, 2017/07/21
- [elpa] master faf73e8 03/31: Merge pull request #404 from jordonbiondo/feature/ignore-warnings, Dmitry Gutov, 2017/07/21
- [elpa] master 0b09004 04/31: Drop msg.yield.parenthesized error,
Dmitry Gutov <=
- [elpa] master 9b20642 01/31: Add support for /*jslint*/ declarations, Dmitry Gutov, 2017/07/21
- [elpa] master 8d05bb7 05/31: yield should not end a return statement, Dmitry Gutov, 2017/07/21
- [elpa] master bb6c388 06/31: ES6 yield is followed by AssignmentExpression, Dmitry Gutov, 2017/07/21
- [elpa] master 32f9782 12/31: Remove js2-mark-safe-local, it's unused now, Dmitry Gutov, 2017/07/21
- [elpa] master 71416f6 08/31: Merge pull request #366 from XeCycle/drop-yield-paren, Dmitry Gutov, 2017/07/21
- [elpa] master 4787b5f 09/31: Merge pull request #363 from XeCycle/class-public-field, Dmitry Gutov, 2017/07/21
- [elpa] master cb8607c 25/31: Add failing test for issue #420, Dmitry Gutov, 2017/07/21
- [elpa] master 908395e 11/31: Allow trailing comma in param list (#410), Dmitry Gutov, 2017/07/21
- [elpa] master 659f683 14/31: Merge pull request #421 from raxod502/feat/C-M-j, Dmitry Gutov, 2017/07/21
- [elpa] master 8a5f492 20/31: Merge pull request #425 from shicks/jsdoc, Dmitry Gutov, 2017/07/21