Files: f019f1d8c91c4a7427df520e819cf78f0fdd7a77 / tests / mergeSections.js
342 bytesRaw
1 | const {wasm2json} = require('wasm-json-toolkit') |
2 | const customTypes = require('../customTypes') |
3 | const fs = require('fs') |
4 | |
5 | function main () { |
6 | const wasm = fs.readFileSync('./wasm/funcRef_caller.wasm') |
7 | const json = wasm2json(wasm) |
8 | const output = customTypes.mergeTypeSections(json) |
9 | console.log(JSON.stringify(output, null, 2)) |
10 | } |
11 | |
12 | main() |
13 |
Built with git-ssb-web