forked from enviPath/enviPy
Current Dev State
This commit is contained in:
9
static/js/ketcher2/node_modules/syntax-error/test/sources/check.js
generated
vendored
Normal file
9
static/js/ketcher2/node_modules/syntax-error/test/sources/check.js
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
module.exports = function (xs, fn) {
|
||||
var res = [];
|
||||
for (var i = 0; i < xs.length; i++) {
|
||||
var x = fn(xs[i], i);
|
||||
if (Array.isArray(x) res.push.apply(res, x);
|
||||
else res.push(x);
|
||||
}
|
||||
return res;
|
||||
};
|
||||
1
static/js/ketcher2/node_modules/syntax-error/test/sources/ok.js
generated
vendored
Normal file
1
static/js/ketcher2/node_modules/syntax-error/test/sources/ok.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
function f () {}
|
||||
1
static/js/ketcher2/node_modules/syntax-error/test/sources/run.js
generated
vendored
Normal file
1
static/js/ketcher2/node_modules/syntax-error/test/sources/run.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
process.exit(1);
|
||||
3
static/js/ketcher2/node_modules/syntax-error/test/sources/run2.js
generated
vendored
Normal file
3
static/js/ketcher2/node_modules/syntax-error/test/sources/run2.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
})();
|
||||
process.exit(1);
|
||||
(function () {
|
||||
2
static/js/ketcher2/node_modules/syntax-error/test/sources/shebang.js
generated
vendored
Normal file
2
static/js/ketcher2/node_modules/syntax-error/test/sources/shebang.js
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env node
|
||||
console.log('foo');
|
||||
13
static/js/ketcher2/node_modules/syntax-error/test/sources/yield.js
generated
vendored
Normal file
13
static/js/ketcher2/node_modules/syntax-error/test/sources/yield.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
function *foo () {
|
||||
yield 5
|
||||
}
|
||||
|
||||
(function *() {
|
||||
console.log(foo().next().value)
|
||||
})().next();
|
||||
|
||||
(function *() { })();
|
||||
|
||||
(function * () {
|
||||
yield yield 3
|
||||
})();
|
||||
Reference in New Issue
Block a user