Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
fix: capture the promise global to avoid userland mutation #20925
A common module
This modifies Electrons code to make it impossible for us to rely on the global, instead we cache the global at runtime in the
There is also an eslint rule to prevent accidental re-introduction of this issue.
This is kinda similar to node's primordials but doesn't strip prototypes and deep clone, it just retains a reference to the original constructor.
Notes: Fixed issue where proxied remote promises might not resolve if