From: Brendan Hansen Date: Mon, 12 Jul 2021 04:04:02 +0000 (-0500) Subject: comments and cleanup X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=e5f7ebe4d21e3645d3f87bc8186379f4d828ab6e;p=onyx.git comments and cleanup --- diff --git a/modules/js_events/js_events.js b/modules/js_events/js_events.js index a60a716b..83639145 100644 --- a/modules/js_events/js_events.js +++ b/modules/js_events/js_events.js @@ -140,7 +140,6 @@ window.ONYX_MODULES.push({ var path_memory = new Uint8Array(ONYX_MEMORY.buffer, filename_ptr, filename_len); var path = new TextDecoder("utf-8").decode(path_memory); - console.log(path); fetch(path) .then(response => response.arrayBuffer()) diff --git a/modules/wasm_utils/instructions.onyx b/modules/wasm_utils/instructions.onyx index aae6f8dd..75eade86 100644 --- a/modules/wasm_utils/instructions.onyx +++ b/modules/wasm_utils/instructions.onyx @@ -390,6 +390,8 @@ parse_instruction :: (reader: ^io.Reader, binary: ^WasmBinary, code_offset := 0, _, data_offset := io.stream_tell(reader.stream); instr.data = code_offset + data_offset; + // I think these shouldn't just be skipped, but instead should be stored in the instruction struct. + // However, I don't know the best way other than a complex union. switch parse_after { case .Block_Type do io.read_byte(reader); case .Index do read_uleb128(reader);