This commit is contained in:
Anthony Laibe 2018-08-28 12:17:47 +01:00
parent 6a2b91d99b
commit 6c63179fa1
2 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,7 @@ const vm = require('vm');
class RunCode {
constructor() {
this.context = Object.assign({}, {require, console, ...global.this});
this.context = Object.assign({}, {require, console}, global.this);
}
doEval(code) {

View File

@ -100,7 +100,6 @@ class CodeGenerator {
});
self.events.setCommandHandler('code-generator:embarkjs:initialization-code', (cb) => {
console.log("command")
cb(self.getEmbarkJsInitializationCode());
});
}