Skip to content

Commit 345731b

Browse files
committed
fix pack-wasm.ts syntax
1 parent 081918b commit 345731b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/pack-wasm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var wasmInstance = new WebAssembly.Instance(wasmModule, {
3030
3131
// from getStringImpl() in AssemblyScript/lib/loader/index.js
3232
function getString(ptr) {
33-
const buffer = wasmInstance.exports.memory.buffer;
33+
var buffer = wasmInstance.exports.memory.buffer;
3434
var u32 = new Uint32Array(buffer);
3535
var u16 = new Uint16Array(buffer);
3636
var offset = (ptr + 4) >>> 1;

0 commit comments

Comments
 (0)