git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit a7906e630711381a660b28d085f0008dc40774fe

remove reverts

wanderer committed on 6/2/2017, 7:40:04 PM
Parent: dee5ab84ac49442b22f614eaf5a76c873d572941

Files changed

exoInterface.jschanged
package.jsonchanged
exoInterface.jsView
@@ -1,6 +1,4 @@
1-const clearObject = require('object-clear')
2-const clone = require('clone')
31 const EventEmitter = require('events')
42 const PortManager = require('./portManager.js')
53 const Message = require('primea-message')
64
@@ -88,17 +86,12 @@
8886 * to by the VM to retrive infromation from the Environment.
8987 * @returns {Promise}
9088 */
9189 async run (message) {
92- const oldState = clone(this.state, false, 3)
9390 let result
9491 try {
9592 result = await this.container.run(message) || {}
9693 } catch (e) {
97- // revert the state
98- clearObject(this.state)
99- Object.assign(this.state, oldState)
100-
10194 result = {
10295 exception: true,
10396 exceptionError: e
10497 }
package.jsonView
@@ -30,12 +30,10 @@
3030 "contributors": "Alex Beregszaszi <alex@rtfs.hu>",
3131 "license": "MPL-2.0",
3232 "dependencies": {
3333 "bn.js": "^4.11.6",
34- "clone": "^2.1.1",
3534 "events": "^1.1.1",
36- "ipld-graph-builder": "1.1.5",
37- "object-clear": "^0.1.0"
35+ "ipld-graph-builder": "1.1.5"
3836 },
3937 "devDependencies": {
4038 "coveralls": "^2.13.1",
4139 "documentation": "^4.0.0-rc.1",

Built with git-ssb-web