Esm: instanceof return failed for module 'readable-stream' PassThrough and core module 'stream' Stream

Created on 19 Jul 2018  路  2Comments  路  Source: standard-things/esm

I have a problem when using esm with instanceof operator as in the following code:

const Stream = require('stream').Stream;
const PassThrough = require('readable-stream').PassThrough;
new PassThrough() instanceof Stream

The instanceof operator return true when running without esm. But it return false when running with esm

bug

Most helpful comment

All 2 comments

v3.0.72 is released :tada:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bensampaio picture bensampaio  路  3Comments

StphamZ picture StphamZ  路  3Comments

OmgImAlexis picture OmgImAlexis  路  3Comments

greggb picture greggb  路  3Comments

MVSICA-FICTA picture MVSICA-FICTA  路  3Comments