xref: /third_party/node/test/parallel/test-repl-null.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/parallel/
11cb0ef41Sopenharmony_ci'use strict';
21cb0ef41Sopenharmony_cirequire('../common');
31cb0ef41Sopenharmony_ciconst repl = require('repl');
41cb0ef41Sopenharmony_ci
51cb0ef41Sopenharmony_ciconst replserver = new repl.REPLServer();
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_cireplserver._inTemplateLiteral = true;
81cb0ef41Sopenharmony_ci
91cb0ef41Sopenharmony_ci// `null` gets treated like an empty string. (Should it? You have to do some
101cb0ef41Sopenharmony_ci// strange business to get it into the REPL. Maybe it should really throw?)
111cb0ef41Sopenharmony_ci
121cb0ef41Sopenharmony_cireplserver.emit('line', null);
131cb0ef41Sopenharmony_cireplserver.emit('line', '.exit');
14

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