From f25514f8a211c512a87653c0fe440d307be5ff09 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Mon, 27 May 2019 16:10:59 +0200 Subject: [PATCH] Updated to Node v10.15.3 --- build/build.js | 2 +- build/test-replacements.js | 2 +- package.json | 6 +++--- test/common/index.js | 2 +- test/parallel/test-stream-backpressure.js | 6 +++++- test/parallel/test-stream-big-packet.js | 6 +++++- test/parallel/test-stream-big-push.js | 6 +++++- test/parallel/test-stream-buffer-list.js | 6 +++++- test/parallel/test-stream-decoder-objectmode.js | 6 +++++- test/parallel/test-stream-destroy-event-order.js | 6 +++++- test/parallel/test-stream-duplex-destroy.js | 6 +++++- test/parallel/test-stream-duplex-end.js | 6 +++++- test/parallel/test-stream-duplex.js | 6 +++++- test/parallel/test-stream-end-paused.js | 6 +++++- test/parallel/test-stream-events-prepend.js | 6 +++++- test/parallel/test-stream-finished.js | 6 +++++- test/parallel/test-stream-ispaused.js | 6 +++++- test/parallel/test-stream-objectmode-undefined.js | 6 +++++- test/parallel/test-stream-once-readable-pipe.js | 6 +++++- test/parallel/test-stream-pipe-after-end.js | 6 +++++- test/parallel/test-stream-pipe-await-drain-manual-resume.js | 6 +++++- .../test-stream-pipe-await-drain-push-while-write.js | 6 +++++- test/parallel/test-stream-pipe-await-drain.js | 6 +++++- test/parallel/test-stream-pipe-cleanup-pause.js | 6 +++++- test/parallel/test-stream-pipe-cleanup.js | 6 +++++- test/parallel/test-stream-pipe-error-handling.js | 6 +++++- test/parallel/test-stream-pipe-event.js | 6 +++++- test/parallel/test-stream-pipe-flow-after-unpipe.js | 6 +++++- test/parallel/test-stream-pipe-flow.js | 6 +++++- test/parallel/test-stream-pipe-manual-resume.js | 6 +++++- test/parallel/test-stream-pipe-multiple-pipes.js | 6 +++++- test/parallel/test-stream-pipe-same-destination-twice.js | 6 +++++- test/parallel/test-stream-pipe-unpipe-streams.js | 6 +++++- test/parallel/test-stream-pipe-without-listenerCount.js | 6 +++++- test/parallel/test-stream-pipeline-queued-end-in-destroy.js | 6 +++++- test/parallel/test-stream-pipeline.js | 6 +++++- test/parallel/test-stream-push-order.js | 6 +++++- test/parallel/test-stream-push-strings.js | 6 +++++- test/parallel/test-stream-readable-async-iterators.js | 6 +++++- .../test-stream-readable-constructor-set-methods.js | 6 +++++- test/parallel/test-stream-readable-destroy.js | 6 +++++- test/parallel/test-stream-readable-emittedReadable.js | 6 +++++- test/parallel/test-stream-readable-event.js | 6 +++++- test/parallel/test-stream-readable-flow-recursion.js | 6 +++++- test/parallel/test-stream-readable-hwm-0-async.js | 6 +++++- test/parallel/test-stream-readable-hwm-0-no-flow-data.js | 6 +++++- test/parallel/test-stream-readable-hwm-0.js | 6 +++++- test/parallel/test-stream-readable-invalid-chunk.js | 6 +++++- test/parallel/test-stream-readable-needReadable.js | 6 +++++- test/parallel/test-stream-readable-no-unneeded-readable.js | 6 +++++- .../test-stream-readable-object-multi-push-async.js | 6 +++++- test/parallel/test-stream-readable-pause-and-resume.js | 6 +++++- test/parallel/test-stream-readable-readable-then-resume.js | 6 +++++- test/parallel/test-stream-readable-reading-readingMore.js | 6 +++++- test/parallel/test-stream-readable-resumeScheduled.js | 6 +++++- test/parallel/test-stream-readable-setEncoding-null.js | 6 +++++- .../test-stream-readable-with-unimplemented-_read.js | 6 +++++- test/parallel/test-stream-readableListening-state.js | 6 +++++- test/parallel/test-stream-transform-callback-twice.js | 6 +++++- .../test-stream-transform-constructor-set-methods.js | 6 +++++- test/parallel/test-stream-transform-destroy.js | 6 +++++- test/parallel/test-stream-transform-final-sync.js | 6 +++++- test/parallel/test-stream-transform-final.js | 6 +++++- test/parallel/test-stream-transform-flush-data.js | 6 +++++- .../test-stream-transform-objectmode-falsey-value.js | 6 +++++- test/parallel/test-stream-transform-split-highwatermark.js | 6 +++++- test/parallel/test-stream-transform-split-objectmode.js | 6 +++++- test/parallel/test-stream-uint8array.js | 6 +++++- test/parallel/test-stream-unpipe-event.js | 6 +++++- test/parallel/test-stream-unshift-empty-chunk.js | 6 +++++- test/parallel/test-stream-unshift-read-race.js | 6 +++++- .../test-stream-writable-change-default-encoding.js | 6 +++++- .../test-stream-writable-constructor-set-methods.js | 6 +++++- test/parallel/test-stream-writable-decoded-encoding.js | 6 +++++- test/parallel/test-stream-writable-destroy.js | 6 +++++- test/parallel/test-stream-writable-ended-state.js | 6 +++++- test/parallel/test-stream-writable-finished-state.js | 6 +++++- test/parallel/test-stream-writable-needdrain-state.js | 6 +++++- test/parallel/test-stream-writable-null.js | 6 +++++- test/parallel/test-stream-writable-write-cb-twice.js | 6 +++++- test/parallel/test-stream-writable-write-writev-finish.js | 6 +++++- test/parallel/test-stream-writableState-ending.js | 6 +++++- ...st-stream-writableState-uncorked-bufferedRequestCount.js | 6 +++++- test/parallel/test-stream-write-destroy.js | 6 +++++- test/parallel/test-stream-write-final.js | 6 +++++- test/parallel/test-stream-writev.js | 6 +++++- test/parallel/test-stream2-base64-single-char-read-end.js | 6 +++++- test/parallel/test-stream2-basic.js | 6 +++++- test/parallel/test-stream2-compatibility.js | 6 +++++- test/parallel/test-stream2-decode-partial.js | 6 +++++- test/parallel/test-stream2-finish-pipe.js | 6 +++++- test/parallel/test-stream2-large-read-stall.js | 6 +++++- test/parallel/test-stream2-objects.js | 6 +++++- test/parallel/test-stream2-pipe-error-handling.js | 6 +++++- test/parallel/test-stream2-pipe-error-once-listener.js | 6 +++++- test/parallel/test-stream2-push.js | 6 +++++- test/parallel/test-stream2-read-sync-stack.js | 6 +++++- test/parallel/test-stream2-readable-empty-buffer-no-eof.js | 6 +++++- test/parallel/test-stream2-readable-from-list.js | 6 +++++- test/parallel/test-stream2-readable-legacy-drain.js | 6 +++++- test/parallel/test-stream2-readable-non-empty-end.js | 6 +++++- test/parallel/test-stream2-readable-wrap-empty.js | 6 +++++- test/parallel/test-stream2-set-encoding.js | 6 +++++- test/parallel/test-stream2-transform.js | 6 +++++- test/parallel/test-stream2-unpipe-drain.js | 6 +++++- test/parallel/test-stream2-unpipe-leak.js | 6 +++++- test/parallel/test-stream2-writable.js | 6 +++++- test/parallel/test-stream3-cork-end.js | 6 +++++- test/parallel/test-stream3-cork-uncork.js | 6 +++++- test/parallel/test-stream3-pause-then-read.js | 6 +++++- test/parallel/test-streams-highwatermark.js | 6 +++++- 111 files changed, 541 insertions(+), 113 deletions(-) diff --git a/build/build.js b/build/build.js index 3a2cf0f435..b87e6b17b7 100755 --- a/build/build.js +++ b/build/build.js @@ -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));') } //-------------------------------------------------------------------- diff --git a/build/test-replacements.js b/build/test-replacements.js index a2ed8b16bb..b9b1fc2396 100644 --- a/build/test-replacements.js +++ b/build/test-replacements.js @@ -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])})' + ' /**/\n\n$1' ] diff --git a/package.json b/package.json index e0bb7c4cec..3f5c42bc43 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/common/index.js b/test/common/index.js index 021cec6fff..f47899958c 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -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]); diff --git a/test/parallel/test-stream-backpressure.js b/test/parallel/test-stream-backpressure.js index 68974f05a6..35da341a75 100644 --- a/test/parallel/test-stream-backpressure.js +++ b/test/parallel/test-stream-backpressure.js @@ -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'); diff --git a/test/parallel/test-stream-big-packet.js b/test/parallel/test-stream-big-packet.js index c3b84375a3..84ea3e3ab5 100644 --- a/test/parallel/test-stream-big-packet.js +++ b/test/parallel/test-stream-big-packet.js @@ -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'); diff --git a/test/parallel/test-stream-big-push.js b/test/parallel/test-stream-big-push.js index a9966961ea..54ef1ca0ad 100644 --- a/test/parallel/test-stream-big-push.js +++ b/test/parallel/test-stream-big-push.js @@ -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'); diff --git a/test/parallel/test-stream-buffer-list.js b/test/parallel/test-stream-buffer-list.js index 4a8eeadae2..99f3b5a8bc 100644 --- a/test/parallel/test-stream-buffer-list.js +++ b/test/parallel/test-stream-buffer-list.js @@ -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'); diff --git a/test/parallel/test-stream-decoder-objectmode.js b/test/parallel/test-stream-decoder-objectmode.js index 6d96cda5b5..fe5a356734 100644 --- a/test/parallel/test-stream-decoder-objectmode.js +++ b/test/parallel/test-stream-decoder-objectmode.js @@ -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'); diff --git a/test/parallel/test-stream-destroy-event-order.js b/test/parallel/test-stream-destroy-event-order.js index d5cb374e0d..12db9e626a 100644 --- a/test/parallel/test-stream-destroy-event-order.js +++ b/test/parallel/test-stream-destroy-event-order.js @@ -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'); diff --git a/test/parallel/test-stream-duplex-destroy.js b/test/parallel/test-stream-duplex-destroy.js index 6ac59f45cf..470d686aad 100644 --- a/test/parallel/test-stream-duplex-destroy.js +++ b/test/parallel/test-stream-duplex-destroy.js @@ -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'); diff --git a/test/parallel/test-stream-duplex-end.js b/test/parallel/test-stream-duplex-end.js index d2507ae078..194648950a 100644 --- a/test/parallel/test-stream-duplex-end.js +++ b/test/parallel/test-stream-duplex-end.js @@ -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'); diff --git a/test/parallel/test-stream-duplex.js b/test/parallel/test-stream-duplex.js index ca4122cde5..c32c7553d0 100644 --- a/test/parallel/test-stream-duplex.js +++ b/test/parallel/test-stream-duplex.js @@ -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'); diff --git a/test/parallel/test-stream-end-paused.js b/test/parallel/test-stream-end-paused.js index fb757044e5..71e4460b0b 100644 --- a/test/parallel/test-stream-end-paused.js +++ b/test/parallel/test-stream-end-paused.js @@ -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'); diff --git a/test/parallel/test-stream-events-prepend.js b/test/parallel/test-stream-events-prepend.js index 8a41741c9e..904c3dec48 100644 --- a/test/parallel/test-stream-events-prepend.js +++ b/test/parallel/test-stream-events-prepend.js @@ -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'); diff --git a/test/parallel/test-stream-finished.js b/test/parallel/test-stream-finished.js index 9901388b69..10881e5fe9 100644 --- a/test/parallel/test-stream-finished.js +++ b/test/parallel/test-stream-finished.js @@ -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'); diff --git a/test/parallel/test-stream-ispaused.js b/test/parallel/test-stream-ispaused.js index cc49db2d53..278f19b636 100644 --- a/test/parallel/test-stream-ispaused.js +++ b/test/parallel/test-stream-ispaused.js @@ -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'); diff --git a/test/parallel/test-stream-objectmode-undefined.js b/test/parallel/test-stream-objectmode-undefined.js index fd462742a2..0a13eb1e98 100644 --- a/test/parallel/test-stream-objectmode-undefined.js +++ b/test/parallel/test-stream-objectmode-undefined.js @@ -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'); diff --git a/test/parallel/test-stream-once-readable-pipe.js b/test/parallel/test-stream-once-readable-pipe.js index 1ecc4a7355..1cdea29f0a 100644 --- a/test/parallel/test-stream-once-readable-pipe.js +++ b/test/parallel/test-stream-once-readable-pipe.js @@ -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'); diff --git a/test/parallel/test-stream-pipe-after-end.js b/test/parallel/test-stream-pipe-after-end.js index e507bb3bb3..38ea5f5ee9 100644 --- a/test/parallel/test-stream-pipe-after-end.js +++ b/test/parallel/test-stream-pipe-after-end.js @@ -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'); diff --git a/test/parallel/test-stream-pipe-await-drain-manual-resume.js b/test/parallel/test-stream-pipe-await-drain-manual-resume.js index b533433914..d36d4f3651 100644 --- a/test/parallel/test-stream-pipe-await-drain-manual-resume.js +++ b/test/parallel/test-stream-pipe-await-drain-manual-resume.js @@ -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'); diff --git a/test/parallel/test-stream-pipe-await-drain-push-while-write.js b/test/parallel/test-stream-pipe-await-drain-push-while-write.js index 9d776492b4..9ee200a899 100644 --- a/test/parallel/test-stream-pipe-await-drain-push-while-write.js +++ b/test/parallel/test-stream-pipe-await-drain-push-while-write.js @@ -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'); diff --git a/test/parallel/test-stream-pipe-await-drain.js b/test/parallel/test-stream-pipe-await-drain.js index a09bfc432d..f63ae4eeec 100644 --- a/test/parallel/test-stream-pipe-await-drain.js +++ b/test/parallel/test-stream-pipe-await-drain.js @@ -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'); diff --git a/test/parallel/test-stream-pipe-cleanup-pause.js b/test/parallel/test-stream-pipe-cleanup-pause.js index 778b4320e9..8f1e11df82 100644 --- a/test/parallel/test-stream-pipe-cleanup-pause.js +++ b/test/parallel/test-stream-pipe-cleanup-pause.js @@ -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'); diff --git a/test/parallel/test-stream-pipe-cleanup.js b/test/parallel/test-stream-pipe-cleanup.js index 89b5ff6275..934109f832 100644 --- a/test/parallel/test-stream-pipe-cleanup.js +++ b/test/parallel/test-stream-pipe-cleanup.js @@ -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'); diff --git a/test/parallel/test-stream-pipe-error-handling.js b/test/parallel/test-stream-pipe-error-handling.js index bacb0f4a58..0067440980 100644 --- a/test/parallel/test-stream-pipe-error-handling.js +++ b/test/parallel/test-stream-pipe-error-handling.js @@ -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'); diff --git a/test/parallel/test-stream-pipe-event.js b/test/parallel/test-stream-pipe-event.js index 4d20fba334..fa485dd875 100644 --- a/test/parallel/test-stream-pipe-event.js +++ b/test/parallel/test-stream-pipe-event.js @@ -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'); diff --git a/test/parallel/test-stream-pipe-flow-after-unpipe.js b/test/parallel/test-stream-pipe-flow-after-unpipe.js index e50de2c68c..a87cc937a7 100644 --- a/test/parallel/test-stream-pipe-flow-after-unpipe.js +++ b/test/parallel/test-stream-pipe-flow-after-unpipe.js @@ -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'); diff --git a/test/parallel/test-stream-pipe-flow.js b/test/parallel/test-stream-pipe-flow.js index 7addc00385..f1ba58e46d 100644 --- a/test/parallel/test-stream-pipe-flow.js +++ b/test/parallel/test-stream-pipe-flow.js @@ -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'); diff --git a/test/parallel/test-stream-pipe-manual-resume.js b/test/parallel/test-stream-pipe-manual-resume.js index 9dcd539572..1ac02b0780 100644 --- a/test/parallel/test-stream-pipe-manual-resume.js +++ b/test/parallel/test-stream-pipe-manual-resume.js @@ -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'); diff --git a/test/parallel/test-stream-pipe-multiple-pipes.js b/test/parallel/test-stream-pipe-multiple-pipes.js index 6cf18fecaf..458b4c8b23 100644 --- a/test/parallel/test-stream-pipe-multiple-pipes.js +++ b/test/parallel/test-stream-pipe-multiple-pipes.js @@ -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'); diff --git a/test/parallel/test-stream-pipe-same-destination-twice.js b/test/parallel/test-stream-pipe-same-destination-twice.js index 5787e207d9..cbe6f66ad3 100644 --- a/test/parallel/test-stream-pipe-same-destination-twice.js +++ b/test/parallel/test-stream-pipe-same-destination-twice.js @@ -85,7 +85,11 @@ var _require = require('../../'), } ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-pipe-unpipe-streams.js b/test/parallel/test-stream-pipe-unpipe-streams.js index d320cb7e8c..081a6b3636 100644 --- a/test/parallel/test-stream-pipe-unpipe-streams.js +++ b/test/parallel/test-stream-pipe-unpipe-streams.js @@ -85,7 +85,11 @@ assert.strictEqual(source._readableState.pipes, null); } ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-pipe-without-listenerCount.js b/test/parallel/test-stream-pipe-without-listenerCount.js index 2d6fd53156..041218adb7 100644 --- a/test/parallel/test-stream-pipe-without-listenerCount.js +++ b/test/parallel/test-stream-pipe-without-listenerCount.js @@ -22,7 +22,11 @@ w.on('error', common.mustCall()); r.pipe(w); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-pipeline-queued-end-in-destroy.js b/test/parallel/test-stream-pipeline-queued-end-in-destroy.js index 1bf85834d9..ea252acd07 100644 --- a/test/parallel/test-stream-pipeline-queued-end-in-destroy.js +++ b/test/parallel/test-stream-pipeline-queued-end-in-destroy.js @@ -44,7 +44,11 @@ setImmediate(function () { }); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-pipeline.js b/test/parallel/test-stream-pipeline.js index 565dbe8425..46af44a91f 100644 --- a/test/parallel/test-stream-pipeline.js +++ b/test/parallel/test-stream-pipeline.js @@ -466,7 +466,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'); diff --git a/test/parallel/test-stream-push-order.js b/test/parallel/test-stream-push-order.js index 1caf211bc1..4dd13be724 100644 --- a/test/parallel/test-stream-push-order.js +++ b/test/parallel/test-stream-push-order.js @@ -59,7 +59,11 @@ process.on('exit', function () { }); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-push-strings.js b/test/parallel/test-stream-push-strings.js index 30ffa6c79e..055acc7fcb 100644 --- a/test/parallel/test-stream-push-strings.js +++ b/test/parallel/test-stream-push-strings.js @@ -95,7 +95,11 @@ process.on('exit', function () { }); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-readable-async-iterators.js b/test/parallel/test-stream-readable-async-iterators.js index 6ef4b5d867..78ab350010 100644 --- a/test/parallel/test-stream-readable-async-iterators.js +++ b/test/parallel/test-stream-readable-async-iterators.js @@ -799,7 +799,11 @@ function _tests() { tests().then(common.mustCall(), common.mustNotCall(console.log)); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-readable-constructor-set-methods.js b/test/parallel/test-stream-readable-constructor-set-methods.js index 4bc09ef680..d8f683dd2f 100644 --- a/test/parallel/test-stream-readable-constructor-set-methods.js +++ b/test/parallel/test-stream-readable-constructor-set-methods.js @@ -19,7 +19,11 @@ var r = new Readable({ r.resume(); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-readable-destroy.js b/test/parallel/test-stream-readable-destroy.js index d375c0747d..95db94393d 100644 --- a/test/parallel/test-stream-readable-destroy.js +++ b/test/parallel/test-stream-readable-destroy.js @@ -211,7 +211,11 @@ var _require2 = require('util'), } ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-readable-emittedReadable.js b/test/parallel/test-stream-readable-emittedReadable.js index 059e98fd3e..d08ffce14b 100644 --- a/test/parallel/test-stream-readable-emittedReadable.js +++ b/test/parallel/test-stream-readable-emittedReadable.js @@ -70,7 +70,11 @@ process.nextTick(common.mustCall(function () { })); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-readable-event.js b/test/parallel/test-stream-readable-event.js index e1e1fb30de..1b33347760 100644 --- a/test/parallel/test-stream-readable-event.js +++ b/test/parallel/test-stream-readable-event.js @@ -135,7 +135,11 @@ var Readable = require('../../').Readable; } ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-readable-flow-recursion.js b/test/parallel/test-stream-readable-flow-recursion.js index ef65a17452..ed98bd3244 100644 --- a/test/parallel/test-stream-readable-flow-recursion.js +++ b/test/parallel/test-stream-readable-flow-recursion.js @@ -77,7 +77,11 @@ process.on('exit', function (code) { }); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-readable-hwm-0-async.js b/test/parallel/test-stream-readable-hwm-0-async.js index 553ce6f755..5b4d102f52 100644 --- a/test/parallel/test-stream-readable-hwm-0-async.js +++ b/test/parallel/test-stream-readable-hwm-0-async.js @@ -27,7 +27,11 @@ r.on('end', common.mustCall()); r.on('data', common.mustCall(5)); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-readable-hwm-0-no-flow-data.js b/test/parallel/test-stream-readable-hwm-0-no-flow-data.js index 93864ae89a..13f7ec3e49 100644 --- a/test/parallel/test-stream-readable-hwm-0-no-flow-data.js +++ b/test/parallel/test-stream-readable-hwm-0-no-flow-data.js @@ -89,7 +89,11 @@ setImmediate(function () { }); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-readable-hwm-0.js b/test/parallel/test-stream-readable-hwm-0.js index 99ffe26343..c2752273d8 100644 --- a/test/parallel/test-stream-readable-hwm-0.js +++ b/test/parallel/test-stream-readable-hwm-0.js @@ -35,7 +35,11 @@ process.nextTick(function () { }); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-readable-invalid-chunk.js b/test/parallel/test-stream-readable-invalid-chunk.js index 64c7d04ba1..0512890b50 100644 --- a/test/parallel/test-stream-readable-invalid-chunk.js +++ b/test/parallel/test-stream-readable-invalid-chunk.js @@ -31,7 +31,11 @@ checkError(function () { }); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-readable-needReadable.js b/test/parallel/test-stream-readable-needReadable.js index 5886660b74..df882d2b4b 100644 --- a/test/parallel/test-stream-readable-needReadable.js +++ b/test/parallel/test-stream-readable-needReadable.js @@ -91,7 +91,11 @@ process.nextTick(common.mustCall(function () { })); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-readable-no-unneeded-readable.js b/test/parallel/test-stream-readable-no-unneeded-readable.js index 46ac73b38f..2da85fb9c9 100644 --- a/test/parallel/test-stream-readable-no-unneeded-readable.js +++ b/test/parallel/test-stream-readable-no-unneeded-readable.js @@ -70,7 +70,11 @@ function test(r) { } ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-readable-object-multi-push-async.js b/test/parallel/test-stream-readable-object-multi-push-async.js index d897372f95..49c350f292 100644 --- a/test/parallel/test-stream-readable-object-multi-push-async.js +++ b/test/parallel/test-stream-readable-object-multi-push-async.js @@ -216,7 +216,11 @@ var BATCH = 10; } ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-readable-pause-and-resume.js b/test/parallel/test-stream-readable-pause-and-resume.js index 8506eef168..fe852cf426 100644 --- a/test/parallel/test-stream-readable-pause-and-resume.js +++ b/test/parallel/test-stream-readable-pause-and-resume.js @@ -44,7 +44,11 @@ function readAndPause() { ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-readable-readable-then-resume.js b/test/parallel/test-stream-readable-readable-then-resume.js index aee4551c3a..5764ab8ddd 100644 --- a/test/parallel/test-stream-readable-readable-then-resume.js +++ b/test/parallel/test-stream-readable-readable-then-resume.js @@ -36,7 +36,11 @@ function check(s) { ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-readable-reading-readingMore.js b/test/parallel/test-stream-readable-reading-readingMore.js index ede0ec31d2..ca17d6262c 100644 --- a/test/parallel/test-stream-readable-reading-readingMore.js +++ b/test/parallel/test-stream-readable-reading-readingMore.js @@ -160,7 +160,11 @@ var Readable = require('../../').Readable; } ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-readable-resumeScheduled.js b/test/parallel/test-stream-readable-resumeScheduled.js index 9a73fd15ee..8aba21c386 100644 --- a/test/parallel/test-stream-readable-resumeScheduled.js +++ b/test/parallel/test-stream-readable-resumeScheduled.js @@ -74,7 +74,11 @@ var _require = require('../../'), } ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-readable-setEncoding-null.js b/test/parallel/test-stream-readable-setEncoding-null.js index 3530e8c685..c4276b4fbb 100644 --- a/test/parallel/test-stream-readable-setEncoding-null.js +++ b/test/parallel/test-stream-readable-setEncoding-null.js @@ -22,7 +22,11 @@ var _require = require('../../'), } ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-readable-with-unimplemented-_read.js b/test/parallel/test-stream-readable-with-unimplemented-_read.js index 0b5d38d5db..42b8c26134 100644 --- a/test/parallel/test-stream-readable-with-unimplemented-_read.js +++ b/test/parallel/test-stream-readable-with-unimplemented-_read.js @@ -19,7 +19,11 @@ readable.on('error', common.expectsError({ readable.read(); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-readableListening-state.js b/test/parallel/test-stream-readableListening-state.js index 502539888d..cf6c46b759 100644 --- a/test/parallel/test-stream-readableListening-state.js +++ b/test/parallel/test-stream-readableListening-state.js @@ -34,7 +34,11 @@ r2.on('data', common.mustCall(function (chunk) { r2.push(bufferShim.from('Testing readableListening state')); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-transform-callback-twice.js b/test/parallel/test-stream-transform-callback-twice.js index 0753accb6b..005d5bf679 100644 --- a/test/parallel/test-stream-transform-callback-twice.js +++ b/test/parallel/test-stream-transform-callback-twice.js @@ -24,7 +24,11 @@ stream.on('error', common.expectsError({ stream.write('foo'); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-transform-constructor-set-methods.js b/test/parallel/test-stream-transform-constructor-set-methods.js index 50b3451552..2b57d43b4f 100644 --- a/test/parallel/test-stream-transform-constructor-set-methods.js +++ b/test/parallel/test-stream-transform-constructor-set-methods.js @@ -45,7 +45,11 @@ t2.end(bufferShim.from('blerg')); t2.resume(); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-transform-destroy.js b/test/parallel/test-stream-transform-destroy.js index eb2df9761d..3a6f1dda9f 100644 --- a/test/parallel/test-stream-transform-destroy.js +++ b/test/parallel/test-stream-transform-destroy.js @@ -164,7 +164,11 @@ var assert = require('assert/'); } ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-transform-final-sync.js b/test/parallel/test-stream-transform-final-sync.js index c53d72faa7..39c0b46a98 100644 --- a/test/parallel/test-stream-transform-final-sync.js +++ b/test/parallel/test-stream-transform-final-sync.js @@ -117,7 +117,11 @@ t.end(7, common.mustCall(function () { }, 1)); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-transform-final.js b/test/parallel/test-stream-transform-final.js index 690200b3a7..37b270ca8f 100644 --- a/test/parallel/test-stream-transform-final.js +++ b/test/parallel/test-stream-transform-final.js @@ -119,7 +119,11 @@ t.end(7, common.mustCall(function () { }, 1)); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-transform-flush-data.js b/test/parallel/test-stream-transform-flush-data.js index 4729a6c959..a6f9810315 100644 --- a/test/parallel/test-stream-transform-flush-data.js +++ b/test/parallel/test-stream-transform-flush-data.js @@ -31,7 +31,11 @@ t.on('data', function (data) { }); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-transform-objectmode-falsey-value.js b/test/parallel/test-stream-transform-objectmode-falsey-value.js index d89ae530e3..39ec6c3c8f 100644 --- a/test/parallel/test-stream-transform-objectmode-falsey-value.js +++ b/test/parallel/test-stream-transform-objectmode-falsey-value.js @@ -60,7 +60,11 @@ var int = setInterval(common.mustCall(function () { }, expect.length + 1), 1); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-transform-split-highwatermark.js b/test/parallel/test-stream-transform-split-highwatermark.js index 3e94301ac5..5de64157aa 100644 --- a/test/parallel/test-stream-transform-split-highwatermark.js +++ b/test/parallel/test-stream-transform-split-highwatermark.js @@ -119,7 +119,11 @@ testTransform(0, 0, { } ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-transform-split-objectmode.js b/test/parallel/test-stream-transform-split-objectmode.js index b7fe961d06..e2349c1862 100644 --- a/test/parallel/test-stream-transform-split-objectmode.js +++ b/test/parallel/test-stream-transform-split-objectmode.js @@ -82,7 +82,11 @@ process.on('exit', function () { }); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-uint8array.js b/test/parallel/test-stream-uint8array.js index 97c86575da..b5b767270c 100644 --- a/test/parallel/test-stream-uint8array.js +++ b/test/parallel/test-stream-uint8array.js @@ -114,7 +114,11 @@ var GHI = new Uint8Array([0x47, 0x48, 0x49]); } ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-unpipe-event.js b/test/parallel/test-stream-unpipe-event.js index c51e8e3e88..1c67b4085b 100644 --- a/test/parallel/test-stream-unpipe-event.js +++ b/test/parallel/test-stream-unpipe-event.js @@ -169,7 +169,11 @@ function (_Readable2) { } ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-unshift-empty-chunk.js b/test/parallel/test-stream-unshift-empty-chunk.js index 192c07656a..2157dff99f 100644 --- a/test/parallel/test-stream-unshift-empty-chunk.js +++ b/test/parallel/test-stream-unshift-empty-chunk.js @@ -69,7 +69,11 @@ r.on('end', function () { }); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-unshift-read-race.js b/test/parallel/test-stream-unshift-read-race.js index df043cc41f..fc0c64df48 100644 --- a/test/parallel/test-stream-unshift-read-race.js +++ b/test/parallel/test-stream-unshift-read-race.js @@ -157,7 +157,11 @@ process.on('exit', function () { }); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-writable-change-default-encoding.js b/test/parallel/test-stream-writable-change-default-encoding.js index 48388f9eec..525dd5b09c 100644 --- a/test/parallel/test-stream-writable-change-default-encoding.js +++ b/test/parallel/test-stream-writable-change-default-encoding.js @@ -104,7 +104,11 @@ common.expectsError(function changeDefaultEncodingToInvalidValue() { ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-writable-constructor-set-methods.js b/test/parallel/test-stream-writable-constructor-set-methods.js index 7f784dcd2f..8d4938822b 100644 --- a/test/parallel/test-stream-writable-constructor-set-methods.js +++ b/test/parallel/test-stream-writable-constructor-set-methods.js @@ -43,7 +43,11 @@ w2.write(bufferShim.from('blerg')); w2.end(); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-writable-decoded-encoding.js b/test/parallel/test-stream-writable-decoded-encoding.js index eb20b0d1ba..439dc30d57 100644 --- a/test/parallel/test-stream-writable-decoded-encoding.js +++ b/test/parallel/test-stream-writable-decoded-encoding.js @@ -83,7 +83,11 @@ function (_stream$Writable) { } ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-writable-destroy.js b/test/parallel/test-stream-writable-destroy.js index 94beb839b9..cc00ce8c38 100644 --- a/test/parallel/test-stream-writable-destroy.js +++ b/test/parallel/test-stream-writable-destroy.js @@ -249,7 +249,11 @@ var _require2 = require('util'), } ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-writable-ended-state.js b/test/parallel/test-stream-writable-ended-state.js index 3c556d5b0d..ac8c6f44b4 100644 --- a/test/parallel/test-stream-writable-ended-state.js +++ b/test/parallel/test-stream-writable-ended-state.js @@ -25,7 +25,11 @@ writable.end('testing ended state', common.mustCall(function () { assert.strictEqual(writable._writableState.ended, true); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-writable-finished-state.js b/test/parallel/test-stream-writable-finished-state.js index c7284b5390..641602a093 100644 --- a/test/parallel/test-stream-writable-finished-state.js +++ b/test/parallel/test-stream-writable-finished-state.js @@ -27,7 +27,11 @@ writable.end('testing finished state', common.mustCall(function () { })); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-writable-needdrain-state.js b/test/parallel/test-stream-writable-needdrain-state.js index 5c83be2714..0dc2b1152b 100644 --- a/test/parallel/test-stream-writable-needdrain-state.js +++ b/test/parallel/test-stream-writable-needdrain-state.js @@ -28,7 +28,11 @@ transform.write('asdasd', common.mustCall(function () { assert.strictEqual(transform._writableState.needDrain, true); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-writable-null.js b/test/parallel/test-stream-writable-null.js index da64b5cf7e..a61b311c83 100644 --- a/test/parallel/test-stream-writable-null.js +++ b/test/parallel/test-stream-writable-null.js @@ -86,7 +86,11 @@ common.expectsError(function () { } ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-writable-write-cb-twice.js b/test/parallel/test-stream-writable-write-cb-twice.js index 0aa9494f3b..9f3fbc3ebc 100644 --- a/test/parallel/test-stream-writable-write-cb-twice.js +++ b/test/parallel/test-stream-writable-write-cb-twice.js @@ -57,7 +57,11 @@ var _require = require('../../'), } ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-writable-write-writev-finish.js b/test/parallel/test-stream-writable-write-writev-finish.js index 50dea3410d..135230fe10 100644 --- a/test/parallel/test-stream-writable-write-writev-finish.js +++ b/test/parallel/test-stream-writable-write-writev-finish.js @@ -192,7 +192,11 @@ var stream = require('../../'); // ensure consistency between the finish event w } ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-writableState-ending.js b/test/parallel/test-stream-writableState-ending.js index 0f64c20ba7..49754b4385 100644 --- a/test/parallel/test-stream-writableState-ending.js +++ b/test/parallel/test-stream-writableState-ending.js @@ -40,7 +40,11 @@ assert.strictEqual(result, writable); // ending, ended = true. testStates(true, false, true); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-writableState-uncorked-bufferedRequestCount.js b/test/parallel/test-stream-writableState-uncorked-bufferedRequestCount.js index 9fb8e0431c..d3efeb7ab8 100644 --- a/test/parallel/test-stream-writableState-uncorked-bufferedRequestCount.js +++ b/test/parallel/test-stream-writableState-uncorked-bufferedRequestCount.js @@ -55,7 +55,11 @@ function uncork() { ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-write-destroy.js b/test/parallel/test-stream-write-destroy.js index 72449967dd..00688cd70c 100644 --- a/test/parallel/test-stream-write-destroy.js +++ b/test/parallel/test-stream-write-destroy.js @@ -87,7 +87,11 @@ for (var _i = 0; _i < _arr.length; _i++) { ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-write-final.js b/test/parallel/test-stream-write-final.js index e8a0ee536f..3f7ba25754 100644 --- a/test/parallel/test-stream-write-final.js +++ b/test/parallel/test-stream-write-final.js @@ -31,7 +31,11 @@ w.write(bufferShim.allocUnsafe(1)); w.end(bufferShim.allocUnsafe(0)); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream-writev.js b/test/parallel/test-stream-writev.js index e0ee22553e..ea0fcc8afa 100644 --- a/test/parallel/test-stream-writev.js +++ b/test/parallel/test-stream-writev.js @@ -132,7 +132,11 @@ function test(decode, uncork, multi, next) { ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream2-base64-single-char-read-end.js b/test/parallel/test-stream2-base64-single-char-read-end.js index f12a04fd01..5ee7b9d52e 100644 --- a/test/parallel/test-stream2-base64-single-char-read-end.js +++ b/test/parallel/test-stream2-base64-single-char-read-end.js @@ -66,7 +66,11 @@ var timeout = setTimeout(function () { }, 100); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream2-basic.js b/test/parallel/test-stream2-basic.js index c830c18703..d7bcd5ab49 100644 --- a/test/parallel/test-stream2-basic.js +++ b/test/parallel/test-stream2-basic.js @@ -403,7 +403,11 @@ function forEach(xs, f) { ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream2-compatibility.js b/test/parallel/test-stream2-compatibility.js index 1719237e9c..69d5141e97 100644 --- a/test/parallel/test-stream2-compatibility.js +++ b/test/parallel/test-stream2-compatibility.js @@ -110,7 +110,11 @@ process.on('exit', function () { }); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream2-decode-partial.js b/test/parallel/test-stream2-decode-partial.js index 99e91f79ae..600e0c6583 100644 --- a/test/parallel/test-stream2-decode-partial.js +++ b/test/parallel/test-stream2-decode-partial.js @@ -31,7 +31,11 @@ process.on('exit', function () { }); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream2-finish-pipe.js b/test/parallel/test-stream2-finish-pipe.js index 5d4533f0b7..f20cdb0d24 100644 --- a/test/parallel/test-stream2-finish-pipe.js +++ b/test/parallel/test-stream2-finish-pipe.js @@ -49,7 +49,11 @@ r.pipe(w); // This might sound unrealistic, but it happens in net.js. When w.end(); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream2-large-read-stall.js b/test/parallel/test-stream2-large-read-stall.js index e5028b5120..fe628142fa 100644 --- a/test/parallel/test-stream2-large-read-stall.js +++ b/test/parallel/test-stream2-large-read-stall.js @@ -81,7 +81,11 @@ function push() { ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream2-objects.js b/test/parallel/test-stream2-objects.js index 756643a647..ec0c17d491 100644 --- a/test/parallel/test-stream2-objects.js +++ b/test/parallel/test-stream2-objects.js @@ -377,7 +377,11 @@ function forEach(xs, f) { ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream2-pipe-error-handling.js b/test/parallel/test-stream2-pipe-error-handling.js index 526e0e088f..e621d48dc6 100644 --- a/test/parallel/test-stream2-pipe-error-handling.js +++ b/test/parallel/test-stream2-pipe-error-handling.js @@ -119,7 +119,11 @@ var stream = require('../../'); } ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream2-pipe-error-once-listener.js b/test/parallel/test-stream2-pipe-error-once-listener.js index 0df3c44e4f..bd0c541db3 100644 --- a/test/parallel/test-stream2-pipe-error-once-listener.js +++ b/test/parallel/test-stream2-pipe-error-once-listener.js @@ -82,7 +82,11 @@ process.on('exit', function (c) { read.pipe(write); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream2-push.js b/test/parallel/test-stream2-push.js index e5101dd072..b7b9083f0e 100644 --- a/test/parallel/test-stream2-push.js +++ b/test/parallel/test-stream2-push.js @@ -126,7 +126,11 @@ function end() { ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream2-read-sync-stack.js b/test/parallel/test-stream2-read-sync-stack.js index c8b9828015..7b94553928 100644 --- a/test/parallel/test-stream2-read-sync-stack.js +++ b/test/parallel/test-stream2-read-sync-stack.js @@ -49,7 +49,11 @@ r.on('end', common.mustCall()); r.read(0); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream2-readable-empty-buffer-no-eof.js b/test/parallel/test-stream2-readable-empty-buffer-no-eof.js index ff82df9220..d62979a07f 100644 --- a/test/parallel/test-stream2-readable-empty-buffer-no-eof.js +++ b/test/parallel/test-stream2-readable-empty-buffer-no-eof.js @@ -142,7 +142,11 @@ function test2() { ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream2-readable-from-list.js b/test/parallel/test-stream2-readable-from-list.js index d743573faa..1d9e285749 100644 --- a/test/parallel/test-stream2-readable-from-list.js +++ b/test/parallel/test-stream2-readable-from-list.js @@ -119,7 +119,11 @@ function bufferListFromArray(arr) { } ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream2-readable-legacy-drain.js b/test/parallel/test-stream2-readable-legacy-drain.js index a49b17165f..08cd9a57d8 100644 --- a/test/parallel/test-stream2-readable-legacy-drain.js +++ b/test/parallel/test-stream2-readable-legacy-drain.js @@ -69,7 +69,11 @@ r.on('readable', function () { r.pipe(w); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream2-readable-non-empty-end.js b/test/parallel/test-stream2-readable-non-empty-end.js index 1ba916211a..5b129fd4f6 100644 --- a/test/parallel/test-stream2-readable-non-empty-end.js +++ b/test/parallel/test-stream2-readable-non-empty-end.js @@ -85,7 +85,11 @@ function next() { ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream2-readable-wrap-empty.js b/test/parallel/test-stream2-readable-wrap-empty.js index da10db241a..99c4f4e1f9 100644 --- a/test/parallel/test-stream2-readable-wrap-empty.js +++ b/test/parallel/test-stream2-readable-wrap-empty.js @@ -43,7 +43,11 @@ newStream.on('readable', function () {}).on('end', common.mustCall()); oldStream.emit('end'); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream2-set-encoding.js b/test/parallel/test-stream2-set-encoding.js index 0338def4b6..273bd74795 100644 --- a/test/parallel/test-stream2-set-encoding.js +++ b/test/parallel/test-stream2-set-encoding.js @@ -251,7 +251,11 @@ function (_R) { } ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream2-transform.js b/test/parallel/test-stream2-transform.js index 7032805423..9bf6158c49 100644 --- a/test/parallel/test-stream2-transform.js +++ b/test/parallel/test-stream2-transform.js @@ -559,7 +559,11 @@ function forEach(xs, f) { ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream2-unpipe-drain.js b/test/parallel/test-stream2-unpipe-drain.js index c9c6a48a19..efaf1cf671 100644 --- a/test/parallel/test-stream2-unpipe-drain.js +++ b/test/parallel/test-stream2-unpipe-drain.js @@ -97,7 +97,11 @@ function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.crea }); })(); -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream2-unpipe-leak.js b/test/parallel/test-stream2-unpipe-leak.js index 174dc337d7..c809c0360a 100644 --- a/test/parallel/test-stream2-unpipe-leak.js +++ b/test/parallel/test-stream2-unpipe-leak.js @@ -101,7 +101,11 @@ process.on('exit', function () { }); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream2-writable.js b/test/parallel/test-stream2-writable.js index d53d2680aa..a2ac4c7174 100644 --- a/test/parallel/test-stream2-writable.js +++ b/test/parallel/test-stream2-writable.js @@ -431,7 +431,11 @@ function forEach(xs, f) { ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream3-cork-end.js b/test/parallel/test-stream3-cork-end.js index df4c070296..78a3fd8cd2 100644 --- a/test/parallel/test-stream3-cork-end.js +++ b/test/parallel/test-stream3-cork-end.js @@ -89,7 +89,11 @@ writeChunks(inputChunks, function () { }); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream3-cork-uncork.js b/test/parallel/test-stream3-cork-uncork.js index 6f1a37bb23..48875fff2e 100644 --- a/test/parallel/test-stream3-cork-uncork.js +++ b/test/parallel/test-stream3-cork-uncork.js @@ -85,7 +85,11 @@ writeChunks(inputChunks, function () { }); ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-stream3-pause-then-read.js b/test/parallel/test-stream3-pause-then-read.js index 97bd17e93f..66a48c91df 100644 --- a/test/parallel/test-stream3-pause-then-read.js +++ b/test/parallel/test-stream3-pause-then-read.js @@ -184,7 +184,11 @@ function pipe() { ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException'); diff --git a/test/parallel/test-streams-highwatermark.js b/test/parallel/test-streams-highwatermark.js index b1ffdcdd14..66f245de08 100644 --- a/test/parallel/test-streams-highwatermark.js +++ b/test/parallel/test-streams-highwatermark.js @@ -82,7 +82,11 @@ var stream = require('../../'); } ; -require('tap').pass('sync run'); +(function () { + var t = require('tap'); + + t.pass('sync run'); +})(); var _list = process.listeners('uncaughtException');