diff --git a/lib/core/modules/coderunner/runCode.js b/lib/core/modules/coderunner/runCode.js index 1e080a523..3db6de7bf 100644 --- a/lib/core/modules/coderunner/runCode.js +++ b/lib/core/modules/coderunner/runCode.js @@ -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) { diff --git a/lib/modules/code_generator/index.js b/lib/modules/code_generator/index.js index 3e01c1f64..367ee46dd 100644 --- a/lib/modules/code_generator/index.js +++ b/lib/modules/code_generator/index.js @@ -100,7 +100,6 @@ class CodeGenerator { }); self.events.setCommandHandler('code-generator:embarkjs:initialization-code', (cb) => { - console.log("command") cb(self.getEmbarkJsInitializationCode()); }); }