Skip to content

Commit ab4fc9c

Browse files
authored
Add node v12 to .travis.yml (#410)
* Add node v12 to .travis.yml * Updated to Node v10.15.3 * Remove error checks
1 parent 32c167d commit ab4fc9c

File tree

113 files changed

+546
-116
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+546
-116
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ matrix:
1212
env: CMD=test
1313
- node_js: 10
1414
env: CMD=test
15+
- node_js: 12
16+
env: CMD=test
1517
- node_js: stable
1618
env: CMD=test-browsers
1719
addons:

build/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function processTestFile (file) {
107107
if (testReplace[file])
108108
replacements = replacements.concat(testReplace[file])
109109

110-
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));')
110+
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));')
111111
}
112112

113113
//--------------------------------------------------------------------

build/test-replacements.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ module.exports['common.js'] = [
116116
+ ' knownGlobals.push(DTRACE_NET_SOCKET_WRITE);\n'
117117
+ ' if (global.__coverage__)\n'
118118
+ ' knownGlobals.push(__coverage__);\n'
119-
+ '\'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])})'
119+
+ '\'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])})'
120120
+ ' /*</replacement>*/\n\n$1'
121121
]
122122

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
"nyc": "^11.0.0",
2828
"pump": "^3.0.0",
2929
"rimraf": "^2.6.2",
30-
"tap": "^11.0.0",
30+
"tap": "^12.0.0",
3131
"tape": "^4.9.0",
3232
"tar-fs": "^1.16.2",
3333
"util-promisify": "^2.1.0"
3434
},
3535
"scripts": {
36-
"test": "tap -j 4 test/parallel/*.js test/ours/*.js",
37-
"ci": "TAP=1 tap test/parallel/*.js test/ours/*.js | tee test.tap",
36+
"test": "tap -J --no-esm test/parallel/*.js test/ours/*.js",
37+
"ci": "TAP=1 tap --no-esm test/parallel/*.js test/ours/*.js | tee test.tap",
3838
"test-browsers": "airtap --sauce-connect --loopback airtap.local -- test/browser.js",
3939
"test-browser-local": "airtap --open --local -- test/browser.js",
4040
"cover": "nyc npm test",

test/browser/test-stream-pipeline.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ module.exports = function (t) {
5454
t.throws(function () {
5555
pipeline(_read, function () {
5656
});
57-
}, /ERR_MISSING_ARGS/);
57+
});
5858
t.throws(function () {
5959
pipeline(function () {
6060
});
61-
}, /ERR_MISSING_ARGS/);
61+
});
6262
t.throws(function () {
6363
pipeline();
64-
}, /ERR_MISSING_ARGS/);
64+
});
6565
t.end();
6666
});
6767
t.test('pipeline error', function (t) {

test/common/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ if (typeof constructor == 'function') knownGlobals.push(constructor);
287287
if (typeof DTRACE_NET_SOCKET_READ == 'function') knownGlobals.push(DTRACE_NET_SOCKET_READ);
288288
if (typeof DTRACE_NET_SOCKET_WRITE == 'function') knownGlobals.push(DTRACE_NET_SOCKET_WRITE);
289289
if (global.__coverage__) knownGlobals.push(__coverage__);
290-
'console,clearImmediate,setImmediate,core,__core-js_shared__,Promise,Map,Set,WeakMap,WeakSet,Reflect,System,asap,Observable,regeneratorRuntime,_babelPolyfill'.split(',').filter(function (item) {
290+
'console,clearImmediate,setImmediate,core,__core-js_shared__,Promise,Map,Set,WeakMap,WeakSet,Reflect,System,queueMicrotask,asap,Observable,regeneratorRuntime,_babelPolyfill'.split(',').filter(function (item) {
291291
return typeof global[item] !== undefined;
292292
}).forEach(function (item) {
293293
knownGlobals.push(global[item]);

test/parallel/test-stream-backpressure.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ var ws = stream.Writable({
4242
rs.pipe(ws);
4343
;
4444

45-
require('tap').pass('sync run');
45+
(function () {
46+
var t = require('tap');
47+
48+
t.pass('sync run');
49+
})();
4650

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

test/parallel/test-stream-big-packet.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,11 @@ function indexOf(xs, x) {
9191

9292
;
9393

94-
require('tap').pass('sync run');
94+
(function () {
95+
var t = require('tap');
96+
97+
t.pass('sync run');
98+
})();
9599

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

test/parallel/test-stream-big-push.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,11 @@ r.once('readable', function () {
7878
});
7979
;
8080

81-
require('tap').pass('sync run');
81+
(function () {
82+
var t = require('tap');
83+
84+
t.pass('sync run');
85+
})();
8286

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

test/parallel/test-stream-buffer-list.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ assert.strictEqual(shifted, buf);
3232
assert.deepStrictEqual(list, new BufferList());
3333
;
3434

35-
require('tap').pass('sync run');
35+
(function () {
36+
var t = require('tap');
37+
38+
t.pass('sync run');
39+
})();
3640

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

test/parallel/test-stream-decoder-objectmode.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ assert.strictEqual(readable.read(), 'def');
2525
assert.strictEqual(readable.read(), null);
2626
;
2727

28-
require('tap').pass('sync run');
28+
(function () {
29+
var t = require('tap');
30+
31+
t.pass('sync run');
32+
})();
2933

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

test/parallel/test-stream-destroy-event-order.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ rs.on('error', common.mustCall(function (err) {
2828
rs.destroy(new Error('kaboom'));
2929
;
3030

31-
require('tap').pass('sync run');
31+
(function () {
32+
var t = require('tap');
33+
34+
t.pass('sync run');
35+
})();
3236

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

test/parallel/test-stream-duplex-destroy.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,11 @@ var _require2 = require('util'),
239239
}
240240
;
241241

242-
require('tap').pass('sync run');
242+
(function () {
243+
var t = require('tap');
244+
245+
t.pass('sync run');
246+
})();
243247

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

test/parallel/test-stream-duplex-end.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ var Duplex = require('../../').Duplex;
5656
}
5757
;
5858

59-
require('tap').pass('sync run');
59+
(function () {
60+
var t = require('tap');
61+
62+
t.pass('sync run');
63+
})();
6064

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

test/parallel/test-stream-duplex.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ process.on('exit', function () {
6565
});
6666
;
6767

68-
require('tap').pass('sync run');
68+
(function () {
69+
var t = require('tap');
70+
71+
t.pass('sync run');
72+
})();
6973

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

test/parallel/test-stream-end-paused.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ process.on('exit', function () {
5555
});
5656
;
5757

58-
require('tap').pass('sync run');
58+
(function () {
59+
var t = require('tap');
60+
61+
t.pass('sync run');
62+
})();
5963

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

test/parallel/test-stream-events-prepend.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ var r = new Readable();
5757
r.pipe(w);
5858
;
5959

60-
require('tap').pass('sync run');
60+
(function () {
61+
var t = require('tap');
62+
63+
t.pass('sync run');
64+
})();
6165

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

test/parallel/test-stream-finished.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,11 @@ var promisify = require('util-promisify');
160160
}
161161
;
162162

163-
require('tap').pass('sync run');
163+
(function () {
164+
var t = require('tap');
165+
166+
t.pass('sync run');
167+
})();
164168

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

test/parallel/test-stream-ispaused.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ readable.resume();
4747
assert.ok(!readable.isPaused());
4848
;
4949

50-
require('tap').pass('sync run');
50+
(function () {
51+
var t = require('tap');
52+
53+
t.pass('sync run');
54+
})();
5155

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

test/parallel/test-stream-objectmode-undefined.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ var _require = require('../../'),
5252
}
5353
;
5454

55-
require('tap').pass('sync run');
55+
(function () {
56+
var t = require('tap');
57+
58+
t.pass('sync run');
59+
})();
5660

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

test/parallel/test-stream-once-readable-pipe.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ var _require = require('../../'),
7171
}
7272
;
7373

74-
require('tap').pass('sync run');
74+
(function () {
75+
var t = require('tap');
76+
77+
t.pass('sync run');
78+
})();
7579

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

test/parallel/test-stream-pipe-after-end.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@ setTimeout(common.mustCall(function () {
100100
}), 1);
101101
;
102102

103-
require('tap').pass('sync run');
103+
(function () {
104+
var t = require('tap');
105+
106+
t.pass('sync run');
107+
})();
104108

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

test/parallel/test-stream-pipe-await-drain-manual-resume.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ writable.on('finish', common.mustCall(function () {
6565
}));
6666
;
6767

68-
require('tap').pass('sync run');
68+
(function () {
69+
var t = require('tap');
70+
71+
t.pass('sync run');
72+
})();
6973

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

test/parallel/test-stream-pipe-await-drain-push-while-write.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ var readable = new stream.Readable({
4242
readable.pipe(writable);
4343
;
4444

45-
require('tap').pass('sync run');
45+
(function () {
46+
var t = require('tap');
47+
48+
t.pass('sync run');
49+
})();
4650

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

test/parallel/test-stream-pipe-await-drain.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ reader.pipe(writer3);
5252
reader.push(buffer);
5353
;
5454

55-
require('tap').pass('sync run');
55+
(function () {
56+
var t = require('tap');
57+
58+
t.pass('sync run');
59+
})();
5660

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

test/parallel/test-stream-pipe-cleanup-pause.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ reader.pipe(writer1);
4141
reader.push(buffer);
4242
;
4343

44-
require('tap').pass('sync run');
44+
(function () {
45+
var t = require('tap');
46+
47+
t.pass('sync run');
48+
})();
4549

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

test/parallel/test-stream-pipe-cleanup.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,11 @@ var util = require('util');
144144
assert.strictEqual(w.listeners('close').length, 0);
145145
})();
146146

147-
require('tap').pass('sync run');
147+
(function () {
148+
var t = require('tap');
149+
150+
t.pass('sync run');
151+
})();
148152

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

test/parallel/test-stream-pipe-error-handling.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,11 @@ var Stream = require('stream').Stream;
119119
}
120120
;
121121

122-
require('tap').pass('sync run');
122+
(function () {
123+
var t = require('tap');
124+
125+
t.pass('sync run');
126+
})();
123127

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

test/parallel/test-stream-pipe-event.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ r.pipe(w);
5959
assert.ok(passed);
6060
;
6161

62-
require('tap').pass('sync run');
62+
(function () {
63+
var t = require('tap');
64+
65+
t.pass('sync run');
66+
})();
6367

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

test/parallel/test-stream-pipe-flow-after-unpipe.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ rs.on('data', common.mustCallAtLeast(function () {
3737
rs.pipe(ws);
3838
;
3939

40-
require('tap').pass('sync run');
40+
(function () {
41+
var t = require('tap');
42+
43+
t.pass('sync run');
44+
})();
4145

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

test/parallel/test-stream-pipe-flow.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,11 @@ var _require = require('../../'),
7878
}
7979
;
8080

81-
require('tap').pass('sync run');
81+
(function () {
82+
var t = require('tap');
83+
84+
t.pass('sync run');
85+
})();
8286

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

0 commit comments

Comments
 (0)