wasm-rquickjs-cli 0.5.3

Tool for wrapping JavaScript modules as WebAssembly components using the QuickJS engine
1
2
3
4
5
6
7
8
9
10
let state = 0;

export const inc = (delta) => {
    console.log(`inc by (${delta})`);
    state += delta;
};

export const get = () => {
    return state;
};