Skip to content

Commit

Permalink
Updated to Node v10.15.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina committed May 27, 2019
1 parent 8d9c7a5 commit f25514f
Show file tree
Hide file tree
Showing 111 changed files with 541 additions and 113 deletions.
2 changes: 1 addition & 1 deletion build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function processTestFile (file) {
if (testReplace[file])
replacements = replacements.concat(testReplace[file])

processFile(url, out, replacements, ';require(\'tap\').pass(\'sync run\');var _list = process.listeners(\'uncaughtException\'); process.removeAllListeners(\'uncaughtException\'); _list.pop(); _list.forEach((e) => process.on(\'uncaughtException\', e));')
processFile(url, out, replacements, ';(function () { var t = require(\'tap\'); t.pass(\'sync run\'); })();var _list = process.listeners(\'uncaughtException\'); process.removeAllListeners(\'uncaughtException\'); _list.pop(); _list.forEach((e) => process.on(\'uncaughtException\', e));')
}

//--------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion build/test-replacements.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ module.exports['common.js'] = [
+ ' knownGlobals.push(DTRACE_NET_SOCKET_WRITE);\n'
+ ' if (global.__coverage__)\n'
+ ' knownGlobals.push(__coverage__);\n'
+ '\'console,clearImmediate,setImmediate,core,__core-js_shared__,Promise,Map,Set,WeakMap,WeakSet,Reflect,System,asap,Observable,regeneratorRuntime,_babelPolyfill\'.split(\',\').filter(function (item) { return typeof global[item] !== undefined}).forEach(function (item) {knownGlobals.push(global[item])})'
+ '\'console,clearImmediate,setImmediate,core,__core-js_shared__,Promise,Map,Set,WeakMap,WeakSet,Reflect,System,queueMicrotask,asap,Observable,regeneratorRuntime,_babelPolyfill\'.split(\',\').filter(function (item) { return typeof global[item] !== undefined}).forEach(function (item) {knownGlobals.push(global[item])})'
+ ' /*</replacement>*/\n\n$1'
]

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
"nyc": "^11.0.0",
"pump": "^3.0.0",
"rimraf": "^2.6.2",
"tap": "^11.0.0",
"tap": "^12.0.0",
"tape": "^4.9.0",
"tar-fs": "^1.16.2",
"util-promisify": "^2.1.0"
},
"scripts": {
"test": "tap -j 4 test/parallel/*.js test/ours/*.js",
"ci": "TAP=1 tap test/parallel/*.js test/ours/*.js | tee test.tap",
"test": "tap -J --no-esm test/parallel/*.js test/ours/*.js",
"ci": "TAP=1 tap --no-esm test/parallel/*.js test/ours/*.js | tee test.tap",
"test-browsers": "airtap --sauce-connect --loopback airtap.local -- test/browser.js",
"test-browser-local": "airtap --open --local -- test/browser.js",
"cover": "nyc npm test",
Expand Down
2 changes: 1 addition & 1 deletion test/common/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ if (typeof constructor == 'function') knownGlobals.push(constructor);
if (typeof DTRACE_NET_SOCKET_READ == 'function') knownGlobals.push(DTRACE_NET_SOCKET_READ);
if (typeof DTRACE_NET_SOCKET_WRITE == 'function') knownGlobals.push(DTRACE_NET_SOCKET_WRITE);
if (global.__coverage__) knownGlobals.push(__coverage__);
'console,clearImmediate,setImmediate,core,__core-js_shared__,Promise,Map,Set,WeakMap,WeakSet,Reflect,System,asap,Observable,regeneratorRuntime,_babelPolyfill'.split(',').filter(function (item) {
'console,clearImmediate,setImmediate,core,__core-js_shared__,Promise,Map,Set,WeakMap,WeakSet,Reflect,System,queueMicrotask,asap,Observable,regeneratorRuntime,_babelPolyfill'.split(',').filter(function (item) {
return typeof global[item] !== undefined;
}).forEach(function (item) {
knownGlobals.push(global[item]);
Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-backpressure.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ var ws = stream.Writable({
rs.pipe(ws);
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-big-packet.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ function indexOf(xs, x) {

;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-big-push.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ r.once('readable', function () {
});
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-buffer-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ assert.strictEqual(shifted, buf);
assert.deepStrictEqual(list, new BufferList());
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-decoder-objectmode.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ assert.strictEqual(readable.read(), 'def');
assert.strictEqual(readable.read(), null);
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-destroy-event-order.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ rs.on('error', common.mustCall(function (err) {
rs.destroy(new Error('kaboom'));
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-duplex-destroy.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,11 @@ var _require2 = require('util'),
}
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-duplex-end.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ var Duplex = require('../../').Duplex;
}
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-duplex.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ process.on('exit', function () {
});
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-end-paused.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ process.on('exit', function () {
});
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-events-prepend.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ var r = new Readable();
r.pipe(w);
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-finished.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ var promisify = require('util-promisify');
}
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-ispaused.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ readable.resume();
assert.ok(!readable.isPaused());
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-objectmode-undefined.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ var _require = require('../../'),
}
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-once-readable-pipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ var _require = require('../../'),
}
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-pipe-after-end.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ setTimeout(common.mustCall(function () {
}), 1);
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-pipe-await-drain-manual-resume.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ writable.on('finish', common.mustCall(function () {
}));
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ var readable = new stream.Readable({
readable.pipe(writable);
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-pipe-await-drain.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ reader.pipe(writer3);
reader.push(buffer);
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-pipe-cleanup-pause.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ reader.pipe(writer1);
reader.push(buffer);
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-pipe-cleanup.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ var util = require('util');
assert.strictEqual(w.listeners('close').length, 0);
})();

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-pipe-error-handling.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,11 @@ var Stream = require('stream').Stream;
}
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-pipe-event.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ r.pipe(w);
assert.ok(passed);
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-pipe-flow-after-unpipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ rs.on('data', common.mustCallAtLeast(function () {
rs.pipe(ws);
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-pipe-flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ var _require = require('../../'),
}
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-pipe-manual-resume.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ test(function () {
});
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
6 changes: 5 additions & 1 deletion test/parallel/test-stream-pipe-multiple-pipes.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ readable.on('end', common.mustCall(function () {
}));
;

require('tap').pass('sync run');
(function () {
var t = require('tap');

t.pass('sync run');
})();

var _list = process.listeners('uncaughtException');

Expand Down
Loading

0 comments on commit f25514f

Please sign in to comment.