keep context for next runs

pull/1/head
yann300 7 years ago
parent 70546d72a3
commit 7797d21262
  1. 2
      src/app/panels/terminal.js

@ -687,7 +687,7 @@ class Terminal {
try {
var cmds = vm.createContext(Object.assign(self._jsSandboxContext, context))
var result = vm.runInContext(script, cmds)
self._jsSandboxContext = Object.assign({}, context)
self._jsSandboxContext = Object.assign(cmds, context)
done(null, result)
} catch (error) {
done(error.message)

Loading…
Cancel
Save