mirror of https://github.com/embarklabs/embark.git
Merge pull request #806 from embark-framework/feature/new-repl-command
Adding new repl options
This commit is contained in:
commit
da0b2f4e66
|
@ -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…
Reference in New Issue