git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit c8cc38c35e9154a3862a3e470612f8c1820401e2

Merge pull request #51 from ewasm/returnFix

Return fix
wanderer authored on 9/12/2016, 3:37:37 PM
GitHub committed on 9/12/2016, 3:37:37 PM
Parent: 9b99d153421b050c83a444b213cdd1f70243c05a
Parent: 06c574f2ee832b663109933a84492bdb449e9d63

Files changed

interface.jschanged
interface.jsView
@@ -502,9 +502,11 @@
502502 * @param {integer} offset the offset of the output data.
503503 * @param {integer} length the length of the output data.
504504 */
505505 return (offset, length) {
506- this.environment.returnValue = this.getMemory(offset, length).slice(0)
506+ if (length) {
507+ this.environment.returnValue = this.getMemory(offset, length).slice(0)
508+ }
507509 }
508510
509511 /**
510512 * Halt execution and register account for later deletion giving the remaining

Built with git-ssb-web