mirror of
https://github.com/nodejs/node.git
synced 2025-12-27 23:41:14 +00:00
PR-URL: https://github.com/nodejs/node/pull/60763 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
16 lines
444 B
JavaScript
16 lines
444 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
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('', common.mustSucceed());
|