summaryrefslogtreecommitdiff
path: root/test/parallel/test-stream-readable-constructor-set-methods.js
blob: 1b9f0496b991ec5b6e98ce5a5d58db880322eeec (plain)
1
2
3
4
5
6
7
8
9
10
11
'use strict';
const common = require('../common');

const Readable = require('stream').Readable;

const _read = common.mustCall(function _read(n) {
  this.push(null);
});

const r = new Readable({ read: _read });
r.resume();