-
Notifications
You must be signed in to change notification settings - Fork 27.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Defensively install patches (#71043)
Some builtins and node library modules may make patching impossible by freezing objects or making propeties readonly. The patch installation is done as early as possible before we know if we're even going to need the patch and thus is done unconditionally whether DIO is enabled or not. This is generally preferable to how for instance the fetch patch is installed which is observable becasue user code can run before it. In this change all the patch installs are for dynamicIO augmented behavior. We can allow the process to run but will warn that `experimental.dynamicIO` will not have expected behavior when calling the functions that were not installed.
- Loading branch information
Showing
4 changed files
with
132 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters