Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(node): instantiating process class without new (#23865)
Popular test runners like Jest instantiate a new `Process` object themselves and expect the class constructor to be callable without the `new` keyword. This PR refactors our `Process` class implementation from a proper ES2015 class to an ES5-style class which can be invoked both with and without the `new` keyword like in Node. Fixes #23863
- Loading branch information