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
1 | const x = new WebSocket("https://github.com")
2 |
3 | try {
4 | x.setMaxListeners(1)
^
TypeError: x.setMaxListeners is not a function. (In 'x.setMaxListeners(1)', 'x.setMaxListeners' is undefined)
at /workspace/empty/index.ts:4:7
4 | x.setMaxListeners(1)
5 | } catch (e) {
6 | console.error(e)
7 | }
8 | try {
9 | x.resume()
^
TypeError: x.resume is not a function. (In 'x.resume()', 'x.resume' is undefined)
at /workspace/empty/index.ts:9:7
Additional information
No response
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.1.40+b5b51004e
What platform is your computer?
Linux 6.1.91-060191-generic x86_64 unknown
What steps can reproduce the bug?
The following code type checks okay and has hover descriptions for methods, except they don't match the runtime behavior.
What is the expected behavior?
The types correspond to the actual shape of the object.
What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: