[Pkg-javascript-commits] [node-syntax-error] 26/47: more tests for valid yield cases

Bastien Roucariès rouca at moszumanska.debian.org
Fri Aug 25 19:30:00 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-syntax-error.

commit 78c99dba7869a638705880de658ddbad251c8d6d
Author: James Halliday <mail at substack.net>
Date:   Mon Nov 17 01:22:02 2014 +0100

    more tests for valid yield cases
---
 test/sources/yield.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/test/sources/yield.js b/test/sources/yield.js
index 526eac7..07c1d05 100644
--- a/test/sources/yield.js
+++ b/test/sources/yield.js
@@ -5,3 +5,9 @@ function *foo () {
 (function *() {
     console.log(foo().next().value)
 })().next();
+
+(function *() { })();
+
+(function * () {
+    yield yield 3
+})();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-syntax-error.git



More information about the Pkg-javascript-commits mailing list