git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 9a207a1ce69e564a67b6833876ce76b4f3258efa

fix a few bugs

wanderer committed on 12/12/2017, 7:47:10 PM
Parent: e62cd9ffb288088f86f5a80cfd7f8e5dc58a6b5c

Files changed

actor.jschanged
inbox.jschanged
tests/index.jschanged
actor.jsView
@@ -95,11 +95,14 @@
9595 }
9696
9797 static deserializeMetaData (buffer) {
9898 const pipe = new Pipe(buffer)
99+ const type = leb128.read(pipe)
100+ pipe.read(1)
101+ const nonce = leb128.read(pipe)
99102 return {
100- type: leb128.read(pipe),
101- nonce: leb128.read(pipe)
103+ nonce,
104+ type
102105 }
103106 }
104107
105108 /**
inbox.jsView
@@ -82,8 +82,9 @@
8282 async _nextMessage (timeout) {
8383 await Promise.all([...this.actor._sending.values()])
8484 let message = this._getOldestMessage()
8585 if (message === undefined && timeout === 0) {
86+ this._gettingNextMessage = false
8687 return
8788 }
8889
8990 timeout += this.actor.ticks
tests/index.jsView
@@ -299,9 +299,9 @@
299299
300300 class testVMContainerB extends BaseContainer {
301301 onCreation (m) {
302302 const cap = m.caps[0]
303- this.actor.send(cap, new Message({data: 'test'}))
303+ return this.actor.send(cap, new Message({data: 'test'}))
304304 }
305305
306306 static get typeId () {
307307 return 8

Built with git-ssb-web