xref: /third_party/node/test/parallel/test-repl-tab.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/parallel/
11cb0ef41Sopenharmony_ci'use strict';
21cb0ef41Sopenharmony_ciconst common = require('../common');
31cb0ef41Sopenharmony_ciconst assert = require('assert');
41cb0ef41Sopenharmony_ciconst repl = require('repl');
51cb0ef41Sopenharmony_ciconst zlib = require('zlib');
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_ci// Just use builtin stream inherited from Duplex
81cb0ef41Sopenharmony_ciconst putIn = zlib.createGzip();
91cb0ef41Sopenharmony_ciconst testMe = repl.start('', putIn, function(cmd, context, filename,
101cb0ef41Sopenharmony_ci                                              callback) {
111cb0ef41Sopenharmony_ci  callback(null, cmd);
121cb0ef41Sopenharmony_ci});
131cb0ef41Sopenharmony_ci
141cb0ef41Sopenharmony_citestMe._domain.on('error', common.mustNotCall());
151cb0ef41Sopenharmony_ci
161cb0ef41Sopenharmony_citestMe.complete('', function(err, results) {
171cb0ef41Sopenharmony_ci  assert.strictEqual(err, null);
181cb0ef41Sopenharmony_ci});
19

Indexes created Thu Nov 07 10:32:03 CST 2024