Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function wast(input) {
Binaryen = require('binaryen.js')
module = new Binaryen.Module(input)
const parser = require('wast-parser'); // NON-OFFICIAL TOY!
let ast = parser.parse(input)
wasm_buffer = Binaryen.compileWast(wast)
// module=await WebAssembly.compile(wasm_buffer)
// instance=await WebAssembly.instantiate(module)
// instance.exports.addTwo(1,2)
}