Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information