From 7646eef387b9131893e67f5bcd2367e8c4e0eba9 Mon Sep 17 00:00:00 2001 From: Brian Carroll Date: Sun, 1 Oct 2023 21:17:44 +0200 Subject: [PATCH] Fix a confusing initial value in the web REPL JS --- www/public/repl/repl.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/public/repl/repl.js b/www/public/repl/repl.js index 55083b5e1b3..7d454982098 100644 --- a/www/public/repl/repl.js +++ b/www/public/repl/repl.js @@ -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