1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
load(libdir + "wasm.js"); var params = ''; var locals = ''; for (let i = 0; i < 20; i++) { params += '(param i64) '; locals += `(get_local ${i}) `; } wasmEvalText(` (module (func ${params} (call 0 ${locals}) ) ) `);