Open NullVoxPopuli opened 1 year ago
ah! thanks for the minimal repro in repl form!
text for me:
❯ node
Welcome to Node.js v18.17.0.
Type ".help" for more information.
> process instanceof require('node:events').EventEmitter
true
>
(To exit, press Ctrl+C again or Ctrl+D or type .exit)
>
# ...
❯ bun repl
Welcome to Bun v1.0.0
Type ".help" for more information.
[!] Please note that the REPL implementation is still experimental!
Don't consider it to be representative of the stability or behavior of Bun overall.
> process instanceof require('node:events').EventEmitter
false
>
Could this be related to #5163
What version of Bun is running?
1.0.0
What platform is your computer?
Linux 6.2.0-32-generic x86_64 x86_64
What steps can reproduce the bug?
What is the expected behavior?
true
What do you see instead?
false
Additional information
In Node:
old repro, not minimal
### What steps can reproduce the bug? ```bash git clone git@github.com:NullVoxPopuli/polaris-starter.git cd polaris-starter git checkout webpack-bun bun install bun --bun node_modules/.bin/ember s ``` Produces output: ``` 23 | if (_process) { 24 | throw new Error(`process already captured at: \n\n${_processCapturedLocation.stack}`); 25 | } 26 | 27 | if (outerProcess instanceof EventEmitter === false) { 28 | throw new Error('attempt to capture bad process instance'); ^ error: attempt to capture bad process instance at capture (