Files: 000f34b577eb112f2692b0c577052f065087f96c / debugInterface.js
335 bytesRaw
1 | /** |
2 | * Debug Interface |
3 | * This expose some functions that can help with debugging wast |
4 | */ |
5 | const Interface = require('./interface.js') |
6 | let MOD |
7 | |
8 | module.exports = class DebugInterface extends Interface { |
9 | debugPrint (a, b) { |
10 | console.log(a) |
11 | } |
12 | |
13 | memPrint () { |
14 | console.log((new Uint8Array(MOD.exports.memory)).toString()) |
15 | } |
16 | } |
17 |
Built with git-ssb-web