mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
9edce1e12a
This updates a lot of comments. PR-URL: https://github.com/nodejs/node/pull/26223 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
19 lines
517 B
JavaScript
19 lines
517 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const assert = require('assert');
|
|
const repl = require('repl');
|
|
const zlib = require('zlib');
|
|
|
|
// Just use builtin stream inherited from Duplex
|
|
const putIn = zlib.createGzip();
|
|
const testMe = repl.start('', putIn, function(cmd, context, filename,
|
|
callback) {
|
|
callback(null, cmd);
|
|
});
|
|
|
|
testMe._domain.on('error', common.mustNotCall());
|
|
|
|
testMe.complete('', function(err, results) {
|
|
assert.strictEqual(err, null);
|
|
});
|