From 72fcf16a394c2690df1fe41334fa59c36713f215 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 21 May 2022 16:15:20 +0100 Subject: [PATCH] Rename to `writeToConsole` --- vendor/wasm/js/runtime.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vendor/wasm/js/runtime.js b/vendor/wasm/js/runtime.js index 907107e07..6cec2d0c0 100644 --- a/vendor/wasm/js/runtime.js +++ b/vendor/wasm/js/runtime.js @@ -1183,7 +1183,7 @@ function odinSetupDefaultImports(wasmMemoryInterface, consoleElement) { currentLine[false] = ""; currentLine[true] = ""; - const addConsoleLine = (line, isError) => { + const writeToConsole = (line, isError) => { if (!line) { return; } @@ -1265,10 +1265,10 @@ function odinSetupDefaultImports(wasmMemoryInterface, consoleElement) { write: (fd, ptr, len) => { const str = wasmMemoryInterface.loadString(ptr, len); if (fd == 1) { - addConsoleLine(str, false); + writeToConsole(str, false); return; } else if (fd == 2) { - addConsoleLine(str, true); + writeToConsole(str, true); return; } else { throw new Error("Invalid fd to 'write'" + stripNewline(str));