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:
Julian Descottes 2019-07-19 08:34:19 +00:00
Родитель c536c060bb
Коммит 3977257d5e
2 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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.

2
devtools/client/shared/vendor/redux.js поставляемый
Просмотреть файл

@ -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;