repl_www: rename the wrapper function around main on the JS side to match Wasm

This commit is contained in:
Brian Carroll 2022-02-18 17:35:29 +00:00
parent 7286f81091
commit d4dc683cbb

View File

@ -88,8 +88,8 @@ async function js_create_app(wasm_module_bytes) {
// Call the main function of the app, via the test wrapper
// Cache the result and return the size of the app's memory
function js_run_app() {
const { run, memory } = repl.app.exports;
const addr = run();
const { wrapper, memory } = repl.app.exports;
const addr = wrapper();
const { buffer } = memory;
repl.result = { addr, buffer };