diff --git a/buildin/global.js b/buildin/global.js index 35f3144e9..2e7bf0b6a 100644 --- a/buildin/global.js +++ b/buildin/global.js @@ -7,7 +7,7 @@ g = (function() { try { // This works if eval is allowed (see CSP) - g = g || Function("return this")() || (1, eval)("this"); + g = g || new Function("return this")(); } catch (e) { // This works if the window reference is available if (typeof window === "object") g = window;