Bug 1399997: Part 1 - Fix eval usage in Redux.jsm. r?standard8
MozReview-Commit-ID: KHeTEy4Os6U
--- a/browser/extensions/activity-stream/vendor/Redux.jsm
+++ b/browser/extensions/activity-stream/vendor/Redux.jsm
@@ -1,14 +1,20 @@
/**
* Redux v.3.6.0
*
* This file has been reformatted as a Javascript Core Module
*/
this.EXPORTED_SYMBOLS = ["redux"];
+
+// Defining these prevents redux from using indirect eval or `new
+// Function()` to get its global object.
+const self = this;
+this.Object = Object;
+
this.redux =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {