xref: /third_party/node/test/parallel/test-stream-readable-with-unimplemented-_read.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 { Readable } = require('stream');
41cb0ef41Sopenharmony_ci
51cb0ef41Sopenharmony_ciconst readable = new Readable();
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_cireadable.read();
81cb0ef41Sopenharmony_cireadable.on('error', common.expectsError({
91cb0ef41Sopenharmony_ci  code: 'ERR_METHOD_NOT_IMPLEMENTED',
101cb0ef41Sopenharmony_ci  name: 'Error',
111cb0ef41Sopenharmony_ci  message: 'The _read() method is not implemented'
121cb0ef41Sopenharmony_ci}));
131cb0ef41Sopenharmony_cireadable.on('close', common.mustCall());
14

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