first commit

This commit is contained in:
s.golasch
2023-08-01 13:49:46 +02:00
commit 1fc239fd54
20238 changed files with 3112246 additions and 0 deletions

View 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
build/node_modules/syntax-error/test/sources/ok.js generated vendored Normal file
View File

@@ -0,0 +1 @@
function f () {}

1
build/node_modules/syntax-error/test/sources/run.js generated vendored Normal file
View File

@@ -0,0 +1 @@
process.exit(1);

3
build/node_modules/syntax-error/test/sources/run2.js generated vendored Normal file
View File

@@ -0,0 +1,3 @@
})();
process.exit(1);
(function () {

View File

@@ -0,0 +1,2 @@
#!/usr/bin/env node
console.log('foo');

13
build/node_modules/syntax-error/test/sources/yield.js generated vendored Normal file
View File

@@ -0,0 +1,13 @@
function *foo () {
yield 5
}
(function *() {
console.log(foo().next().value)
})().next();
(function *() { })();
(function * () {
yield yield 3
})();