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
The domain module overwrites the EventEmitter and mounts the domain on the EventEmitter. This causes a problem. If a third-party library mounts a variable named domain on the EventEmitter and introduces the domain module at the same time, it will cause an error.
We use the request library, which mounts the request body on EventEmitter. There is a domain field in our request body, and there is an error of domain.enter is not a function (domain is overwritten as a string at this time)
How often does it reproduce? Is there a required condition?
Import domain
Inherit the EventEmitter class
There is a variable named domain
What is the expected behavior?
domain should be private
What do you see instead?
Additional information
I see that the domain module no longer accepts PRs, can I submit a PR for this issue
The text was updated successfully, but these errors were encountered:
What steps will reproduce the bug?
The domain module overwrites the EventEmitter and mounts the domain on the EventEmitter. This causes a problem. If a third-party library mounts a variable named domain on the EventEmitter and introduces the domain module at the same time, it will cause an error.
We use the request library, which mounts the request body on EventEmitter. There is a domain field in our request body, and there is an error of domain.enter is not a function (domain is overwritten as a string at this time)
How often does it reproduce? Is there a required condition?
What is the expected behavior?
domain should be private
What do you see instead?
Additional information
I see that the domain module no longer accepts PRs, can I submit a PR for this issue
The text was updated successfully, but these errors were encountered: