This commit is contained in:
Simon Priet
2021-09-05 22:53:58 +02:00
commit 9e2991e668
17888 changed files with 1263126 additions and 0 deletions

9
node_modules/syntax-error/test/sources/check.js generated vendored Normal file
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;
};

2
node_modules/syntax-error/test/sources/esm.js generated vendored Normal file
View File

@@ -0,0 +1,2 @@
import x from 'y';
export default z;

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

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

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

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

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

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

2
node_modules/syntax-error/test/sources/shebang.js generated vendored Normal file
View File

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

2
node_modules/syntax-error/test/sources/spread.js generated vendored Normal file
View File

@@ -0,0 +1,2 @@
var a = { ...b }
;({ d, ...e } = a)

13
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
})();