From 6c63179fa1716218117b69ef48a7e22be9830254 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Tue, 28 Aug 2018 12:17:47 +0100 Subject: [PATCH] Fix lint --- lib/core/modules/coderunner/runCode.js | 2 +- lib/modules/code_generator/index.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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()); }); }