From e08892664fb444e66604a0ded8858131611f072d Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Tue, 11 Sep 2018 09:27:19 +0100 Subject: [PATCH] Adding new repl options --- lib/core/modules/coderunner/runCode.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) {