From 3762100ae8637c1fb81add20ddf6c77862a4134d Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 6 Sep 2017 10:20:28 +0200 Subject: [PATCH] standard fix --- src/app/panels/terminal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/panels/terminal.js b/src/app/panels/terminal.js index 952dbac108..568be164d0 100644 --- a/src/app/panels/terminal.js +++ b/src/app/panels/terminal.js @@ -568,8 +568,8 @@ class Terminal { var self = this var context = domTerminalFeatures(self, scopedCommands) try { - var context = vm.createContext(Object.assign(self._jsSandboxContext, context)) - var result = vm.runInContext(script, context) + var cmds = vm.createContext(Object.assign(self._jsSandboxContext, context)) + var result = vm.runInContext(script, cmds) self._jsSandboxContext = Object.assign({}, context) done(null, result) } catch (error) {