From d4dc683cbb75e424a1205d9fe9a3ffcd0aaed64c Mon Sep 17 00:00:00 2001 From: Brian Carroll Date: Fri, 18 Feb 2022 17:35:29 +0000 Subject: [PATCH] repl_www: rename the wrapper function around main on the JS side to match Wasm --- repl_www/public/repl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repl_www/public/repl.js b/repl_www/public/repl.js index 336c08e9e8..350ac9a066 100644 --- a/repl_www/public/repl.js +++ b/repl_www/public/repl.js @@ -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 };