浏览代码

Don't pass `true` for `littleEndian` where it's not needed.

Damian Tarnawski 1 年之前
父节点
当前提交
256e4a0081
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      vendor/wasm/js/runtime.js

+ 4 - 4
vendor/wasm/js/runtime.js

@@ -47,8 +47,8 @@ class WasmMemoryInterface {
 	}
 
 
-	loadU8(addr) { return this.mem.getUint8  (addr, true); }
-	loadI8(addr) { return this.mem.getInt8   (addr, true); }
+	loadU8(addr)  { return this.mem.getUint8  (addr); }
+	loadI8(addr)  { return this.mem.getInt8   (addr); }
 	loadU16(addr) { return this.mem.getUint16 (addr, true); }
 	loadI16(addr) { return this.mem.getInt16  (addr, true); }
 	loadU32(addr) { return this.mem.getUint32 (addr, true); }
@@ -80,8 +80,8 @@ class WasmMemoryInterface {
 		return new TextDecoder().decode(bytes);
 	}
 
-	storeU8(addr, value)  { this.mem.setUint8  (addr, value, true); }
-	storeI8(addr, value)  { this.mem.setInt8   (addr, value, true); }
+	storeU8(addr, value)  { this.mem.setUint8  (addr, value); }
+	storeI8(addr, value)  { this.mem.setInt8   (addr, value); }
 	storeU16(addr, value) { this.mem.setUint16 (addr, value, true); }
 	storeI16(addr, value) { this.mem.setInt16  (addr, value, true); }
 	storeU32(addr, value) { this.mem.setUint32 (addr, value, true); }