From f4433ce3a3448024897126fbed32272d26845154 Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Sat, 14 Mar 2026 18:35:33 +0000 Subject: [PATCH] LEB128-encode addresses in data section --- asm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asm.js b/asm.js index cfb0912..a59e16c 100644 --- a/asm.js +++ b/asm.js @@ -984,7 +984,7 @@ export class Assembler { return [ ...(loc.mem == 0 ? [ 0 ] : [ 2, loc.mem ]), opcodes["i32.const"], - loc.addr, + ...this.leb128(loc.addr), opcodes["end"], data.length, ...data,