Skip to content

Commit

Permalink
Fix a confusing initial value in the web REPL JS
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-carroll committed Oct 1, 2023
1 parent 7aa5fe0 commit 7646eef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions www/public/repl/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ const repl = {
compiler: null,
app: null,

// Temporary storage for values passing back and forth between JS and Wasm
result_addr: { addr: 0, buffer: new ArrayBuffer() },
// Temporary storage for the address of the result of running the user's code.
// Used while control flow returns to Rust to allocate space to copy the app's memory buffer.
result_addr: 0,
};

// Initialise
Expand Down

0 comments on commit 7646eef

Please sign in to comment.