diff --git a/lib/core/modules/coderunner/runCode.js b/lib/core/modules/coderunner/runCode.js index e256e038e..facd08b46 100644 --- a/lib/core/modules/coderunner/runCode.js +++ b/lib/core/modules/coderunner/runCode.js @@ -3,7 +3,10 @@ const vm = require('vm'); class RunCode { constructor({logger}) { this.logger = logger; - this.context = Object.assign({}, {global, console, exports, require, module, __filename, __dirname}); + this.context = Object.assign({}, { + global, console, exports, require, module, __filename, __dirname, process, + setTimeout, setInterval, clearTimeout, clearInterval + }); } doEval(code) {