aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-04-08 12:32:51 +1000
committerdaurnimator <quae@daurnimator.com>2018-04-08 12:32:51 +1000
commitfe9b43374c2e8dc28df0ce460aefaf50b933aaa7 (patch)
tree357f2d427045e4f6d65b3c4f17a217b46fb26cd0 /src
parent53cba4564fba8b5466563f2fcec50d0fab7f39d4 (diff)
downloadfengari-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')
-rw-r--r--src/loadlib.js2
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 */
}
})();