From fe9b43374c2e8dc28df0ce460aefaf50b933aaa7 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 8 Apr 2018 12:32:51 +1000 Subject: src/loadlib.js: Use indirect eval for getting reference to global env --- src/loadlib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/loadlib.js b/src/loadlib.js index f6679ba..49cfc5a 100644 --- a/src/loadlib.js +++ b/src/loadlib.js @@ -85,7 +85,7 @@ const global_env = (function() { return self; } else { /* unknown global env */ - return eval('this'); /* use non-strict mode to get global env */ + return (0, eval)('this'); /* use non-strict mode to get global env */ } })(); -- cgit v1.2.3-70-g09d2