mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-21 07:49:17 +03:00
repl_www: rename the wrapper function around main on the JS side to match Wasm
This commit is contained in:
parent
7286f81091
commit
d4dc683cbb
@ -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 };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user