Commit c8cc38c35e9154a3862a3e470612f8c1820401e2
Merge pull request #51 from ewasm/returnFix
Return fixwanderer 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.js | changed |
interface.js | ||
---|---|---|
@@ -502,9 +502,11 @@ | ||
502 | 502 | * @param {integer} offset the offset of the output data. |
503 | 503 | * @param {integer} length the length of the output data. |
504 | 504 | */ |
505 | 505 | 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 | + } | |
507 | 509 | } |
508 | 510 | |
509 | 511 | /** |
510 | 512 | * Halt execution and register account for later deletion giving the remaining |
Built with git-ssb-web