Skip to content

Commit 614a6fc

Browse files
authored
Merge pull request webpack#8385 from hax/patch-1
Drop unuseful `eval` call
2 parents 04f90c5 + 48f0604 commit 614a6fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildin/global.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ g = (function() {
77

88
try {
99
// This works if eval is allowed (see CSP)
10-
g = g || Function("return this")() || (1, eval)("this");
10+
g = g || new Function("return this")();
1111
} catch (e) {
1212
// This works if the window reference is available
1313
if (typeof window === "object") g = window;

0 commit comments

Comments
 (0)