Files: 63c9d288b4797cd12ec12e080e84ed2559b14e63 / 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