diff --git a/wasm_parts/main.js b/wasm_parts/main.js index 213ceadd..8901bf31 100644 --- a/wasm_parts/main.js +++ b/wasm_parts/main.js @@ -271,7 +271,7 @@ class Uint8ArrayWriter { writeString (str) { const bStr = (new TextEncoder()).encode(str) this.writeULeb(bStr.length) - this.maybeGrow(b.length) + this.maybeGrow(bStr.length) this.buf.set(bStr, this.i) this.i += bStr.length return this