mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00: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
1 changed files with 2 additions and 2 deletions
|
@ -88,8 +88,8 @@ async function js_create_app(wasm_module_bytes) {
|
||||||
// Call the main function of the app, via the test wrapper
|
// Call the main function of the app, via the test wrapper
|
||||||
// Cache the result and return the size of the app's memory
|
// Cache the result and return the size of the app's memory
|
||||||
function js_run_app() {
|
function js_run_app() {
|
||||||
const { run, memory } = repl.app.exports;
|
const { wrapper, memory } = repl.app.exports;
|
||||||
const addr = run();
|
const addr = wrapper();
|
||||||
const { buffer } = memory;
|
const { buffer } = memory;
|
||||||
repl.result = { addr, buffer };
|
repl.result = { addr, buffer };
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue