diff options
author | daurnimator <quae@daurnimator.com> | 2018-04-08 12:32:51 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2018-04-08 12:32:51 +1000 |
commit | fe9b43374c2e8dc28df0ce460aefaf50b933aaa7 (patch) | |
tree | 357f2d427045e4f6d65b3c4f17a217b46fb26cd0 /src/loadlib.js | |
parent | 53cba4564fba8b5466563f2fcec50d0fab7f39d4 (diff) | |
download | fengari-fe9b43374c2e8dc28df0ce460aefaf50b933aaa7.tar.gz fengari-fe9b43374c2e8dc28df0ce460aefaf50b933aaa7.tar.bz2 fengari-fe9b43374c2e8dc28df0ce460aefaf50b933aaa7.zip |
src/loadlib.js: Use indirect eval for getting reference to global env
Diffstat (limited to 'src/loadlib.js')
-rw-r--r-- | src/loadlib.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ } })(); |