[Pkg-javascript-commits] [node-syntax-error] 22/47: yield test only works on esprima-fb, not esprima

Bastien Roucariès rouca at moszumanska.debian.org
Fri Aug 25 19:29:59 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 f78d8fb2403963d040470bd3f7b6d273d9e9e7b9
Author: James Halliday <mail at substack.net>
Date:   Sat Jul 26 14:46:31 2014 -0700

    yield test only works on esprima-fb, not esprima
---
 test/sources/yield.js |  7 +++++++
 test/yield.js         | 13 +++++++++++++
 2 files changed, 20 insertions(+)

diff --git a/test/sources/yield.js b/test/sources/yield.js
new file mode 100644
index 0000000..526eac7
--- /dev/null
+++ b/test/sources/yield.js
@@ -0,0 +1,7 @@
+function *foo () {
+    yield 5
+}
+
+(function *() {
+    console.log(foo().next().value)
+})().next();
diff --git a/test/yield.js b/test/yield.js
new file mode 100644
index 0000000..3716d93
--- /dev/null
+++ b/test/yield.js
@@ -0,0 +1,13 @@
+var test = require('tape');
+
+var fs = require('fs');
+var check = require('../');
+
+var file = __dirname + '/sources/yield.js';
+var src = fs.readFileSync(file);
+
+test('yield', function (t) {
+    var err = check(src, file);
+    t.notOk(err);
+    t.end();
+});

-- 
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