Please sign in to comment.
fix: capture the promise global to avoid userland mutation (#20925)
- Loading branch information...
Showing with 39 additions and 2 deletions.
|@@ -0,0 +1,8 @@|
|// Captures original globals into a scope to ensure that userland modifications do|
|// not impact Electron. Note that users doing:|
|// global.Promise.resolve = myFn|
|// Will mutate this captured one as well and that is OK.|
|export const Promise = global.Promise|