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

24
build/node_modules/browserify/test/error_code.js generated vendored Normal file
View File

@@ -0,0 +1,24 @@
var test = require('tap').test;
var spawn = require('child_process').spawn;
var path = require('path');
test('error code', function (t) {
t.plan(2);
var cwd = process.cwd();
process.chdir(__dirname);
var ps = spawn(process.execPath, [
path.resolve(__dirname, '../bin/cmd.js'),
path.resolve(__dirname, 'error_code/src.js')
]);
var err = '';
ps.stderr.on('data', function (buf) { err += buf });
ps.stderr.on('end', function () {
t.ok(/^(Syntax|Parse)Error:/m.test(err));
});
ps.on('exit', function (code) {
t.notEqual(code, 0);
});
});