mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-10 22:16:20 +00:00
Adding new repl options
This commit is contained in:
parent
4e3e27df6c
commit
e08892664f
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user