You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Execute the script with bun run main.mjs and node main.mjs. Observing the error thrown by bun will reveal:
Connected!
10 |
11 | n.connect(443, 'google.com')
12 |
13 | n.on('connect', () => {
14 | console.log('Connected!')
15 | n.join()
^
TypeError: n.join is not a function. (In 'n.join()', 'n.join' is undefined)
at /main.mjs:15:5
at emit (node:events:75:22)
at open (node:net:102:63)
What is the expected behavior?
Bun is expected to exhibit behavior identical to that of Node.js, or did I miss something?
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
v1.1.42, and Node.js v22.11.0
What platform is your computer?
Darwin 22.5.0 arm64 arm
What steps can reproduce the bug?
main.mjs
and insert the following code:bun run main.mjs
andnode main.mjs
. Observing the error thrown by bun will reveal:What is the expected behavior?
Bun is expected to exhibit behavior identical to that of Node.js, or did I miss something?
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: