diff options
Diffstat (limited to 'core/00_primordials.js')
-rw-r--r-- | core/00_primordials.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/00_primordials.js b/core/00_primordials.js index 4ca7ce073..843eb8b29 100644 --- a/core/00_primordials.js +++ b/core/00_primordials.js @@ -468,6 +468,11 @@ queueMicrotask = value; }; + // Renaming from `eval` is necessary because otherwise it would perform direct + // evaluation, allowing user-land access to local variables. + // This is because the identifier `eval` is somewhat treated as a keyword + primordials.indirectEval = eval; + ObjectSetPrototypeOf(primordials, null); ObjectFreeze(primordials); |