You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: prevent hoisting of the undefined global variable in browser.js (#1534)
Because of JS hoisting `var global` to the top of the file, `typeof
global` in `getGlobal()` will always be `undefined`.
By using a different variable name like `globalObject`, we are able to
read the "real" `typeof global` and get access to the global object that
way.
0 commit comments