Commit 9815c3cee36f62eacffbd32f58584ac348296edd
fix print
wanderer committed on 8/6/2016, 2:07:43 AMParent: c382a275f9254a5f572a861c59231fb0acfea085
Files changed
debugInterface.js | changed |
debugInterface.js | ||
---|---|---|
@@ -20,12 +20,11 @@ | ||
20 | 20 | } |
21 | 21 | |
22 | 22 | get exportTable () { |
23 | 23 | return { |
24 | - 'print': function (offset, length) { | |
25 | - console.log(`<DEBUG(str): ${Uint8ArrayToString(new Uint8Array(this.module.exports.memory, offset, length))}>`) | |
26 | - }.bind(this), | |
27 | - | |
24 | + 'print': function (a) { | |
25 | + console.log(a) | |
26 | + }, | |
28 | 27 | 'printHex': function (offset, length) { |
29 | 28 | console.log(`<DEBUG(hex): ${Uint8ArrayToHexString(new Uint8Array(this.module.exports.memory, offset, length))}>`) |
30 | 29 | }.bind(this), |
31 | 30 |
Built with git-ssb-web