Skip to content

Commit

Permalink
fix(node): instantiating process class without new (#23865)
Browse files Browse the repository at this point in the history
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
marvinhagemeister committed May 17, 2024
1 parent 812f2e4 commit 75efc74
Show file tree
Hide file tree
Showing 2 changed files with 293 additions and 274 deletions.
Loading

0 comments on commit 75efc74

Please sign in to comment.