stream-browserify icon indicating copy to clipboard operation
stream-browserify copied to clipboard

inheritance is botched

Open pkit opened this issue 5 years ago • 0 comments

const sb = require('stream-browserify')
const rb = new sb.Readable()
console.log(rb instanceof sb.Stream) // false

const s = require('stream')
const r = new s.Readable()
console.log(r instanceof s.Stream) // true

it's coming from readable-stream inheriting from the stream instead of stream-browserify

pkit avatar Apr 08 '20 15:04 pkit