Skip to content

Commit a7a6b3b

Browse files
author
Ives van Hoorne
committed
Stub global with window
1 parent dbbc680 commit a7a6b3b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sandbox/eval/js/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ const compileCode = (
5050
function evaluate(code, require) {
5151
const module = { exports: {} };
5252
const exports = {};
53+
const global = window;
5354
const process = { env: { NODE_ENV: 'development' } }; // eslint-disable-line no-unused-vars
5455
try {
5556
eval(code); // eslint-disable-line no-eval

0 commit comments

Comments
 (0)