Sha256: ea2ab5d7df6ac379a03f55e57b09b6bdcd58cfdd67349b651c8ae2366411b9ef

Contents?: true

Size: 345 Bytes

Versions: 5

Compression:

Stored size: 345 Bytes

Contents

'use strict';
require('../common');
var assert = require('assert');

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

var _readCalled = false;
function _read(n) {
  _readCalled = true;
  this.push(null);
}

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

process.on('exit', function() {
  assert.equal(r._read, _read);
  assert(_readCalled);
});

Version data entries

5 entries across 4 versions & 1 rubygems

Version Path
node-compiler-0.9.1 vendor/node/test/parallel/test-stream-readable-constructor-set-methods.js
node-compiler-0.9.0 vendor/node-v7.2.1/test/parallel/test-stream-readable-constructor-set-methods.js
node-compiler-0.8.0 vendor/node-v7.2.0/test/parallel/test-stream-readable-constructor-set-methods.js
node-compiler-0.7.0 vendor/node-v6.9.1/test/parallel/test-stream-readable-constructor-set-methods.js
node-compiler-0.7.0 vendor/node-v7.1.0/test/parallel/test-stream-readable-constructor-set-methods.js