зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1550485 - Remove usage of new Function in redux.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D38514 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
c536c060bb
Коммит
3977257d5e
|
@ -29,3 +29,4 @@ cp dist/redux.js <gecko-dev>/devtools/client/shared/vendor/redux.js
|
|||
* react-redux v3.7.2
|
||||
*/
|
||||
```
|
||||
- Replace all instances of `Function('return this')()` with `globalThis`. See Bug 1473549.
|
|
@ -15,7 +15,7 @@ var freeGlobal = typeof global == 'object' && global && global.Object === Object
|
|||
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
||||
|
||||
/** Used as a reference to the global object. */
|
||||
var root = freeGlobal || freeSelf || Function('return this')();
|
||||
var root = freeGlobal || freeSelf || globalThis;
|
||||
|
||||
/** Built-in value references. */
|
||||
var Symbol = root.Symbol;
|
||||
|
|
Загрузка…
Ссылка в новой задаче