comments and cleanup
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Mon, 12 Jul 2021 04:04:02 +0000 (23:04 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Mon, 12 Jul 2021 04:04:02 +0000 (23:04 -0500)
modules/js_events/js_events.js
modules/wasm_utils/instructions.onyx

index a60a716b8238d4edd8086d02e2d564012f9a8b85..8363914596fa0ed0eea3e667e2e4a1ec4e568935 100644 (file)
@@ -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())
index aae6f8ddb963260b48d7976acf7ed352c7db6275..75eade865cb68e2479e1992115b7a4829f0fa9f4 100644 (file)
@@ -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);