Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Binaryen=require('binaryen')
// Binaryen.setAPITracing(true)
// Binaryen.setAPITracing(false)
let wasm = mod = new Binaryen.Module();
let int=wasm.i32.const
let float=wasm.f32.const
let f32 = Binaryen.f32;
const i32=Binaryen.i32
const int32=Binaryen.i32
const chars=Binaryen.i32
const I32=wasm.i32
const local=wasm.getLocal
// const fun=wasm.addFunction
const add = I32.add
const sub = I32.sub
let none = Binaryen.None;
str=(x)=>x.split('').map(function(x) { return x.charCodeAt(0) })
// const memory = new WebAssembly.Memory({ initial: 10 });
// const arrayBuffer = memory.buffer;
// const buffer = new Uint8Array(arrayBuffer);
wasm.setMemory(1, 256, "mem", [{
offset: int(10),
data: str("hello, world")
}]);
Binaryen=require('binaryen')
// Binaryen.setAPITracing(true)
// Binaryen.setAPITracing(false)
let wasm = mod = new Binaryen.Module();
let int=wasm.i32.const
let float=wasm.f32.const
let f32 = Binaryen.f32;
const i32=Binaryen.i32
const int32=Binaryen.i32
const chars=Binaryen.i32
const I32=wasm.i32
const local=wasm.getLocal
// const fun=wasm.addFunction
const add = I32.add
const sub = I32.sub
let none = Binaryen.None;
str=(x)=>x.split('').map(function(x) { return x.charCodeAt(0) })
// const memory = new WebAssembly.Memory({ initial: 10 });
// const arrayBuffer = memory.buffer;
// const buffer = new Uint8Array(arrayBuffer);
wasm.setMemory(1, 256, "mem", [{
offset: int(10),
data: str("hello, world")
}]);
Binaryen=require('binaryen')
// Binaryen.setAPITracing(true)
// Binaryen.setAPITracing(false)
let wasm = mod = new Binaryen.Module();
let int=wasm.i32.const
let float=wasm.f32.const
let f32 = Binaryen.f32;
const i32=Binaryen.i32
const int32=Binaryen.i32
const chars=Binaryen.i32
const I32=wasm.i32
const local=wasm.getLocal
// const fun=wasm.addFunction
const add = I32.add
const sub = I32.sub
let none = Binaryen.None;
str=(x)=>x.split('').map(function(x) { return x.charCodeAt(0) })
// const memory = new WebAssembly.Memory({ initial: 10 });
// const arrayBuffer = memory.buffer;
// const buffer = new Uint8Array(arrayBuffer);
wasm.setMemory(1, 256, "mem", [{
offset: int(10),
data: str("hello, world")