Encode indices as unsigned LEB128 instead of signed

This commit is contained in:
2026-03-15 20:04:06 +00:00
parent 6784cd02b4
commit 74a8f21379

2
asm.js
View File

@@ -963,7 +963,7 @@ export class Assembler {
} }
func.body.push(...this.leb128(def_value)); func.body.push(...this.leb128(def_value));
} else { } else {
func.body.push(...this.leb128(value)); func.body.push(...this.uleb128(value));
} }
} }