Skip to content

Commit

Permalink
fix: ensure int64 arguments are BigInts
Browse files Browse the repository at this point in the history
  • Loading branch information
zshipko committed Dec 6, 2024
1 parent c0d8747 commit 9fd5fc1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified examples/basic/test.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export class Test {
const a = Memory.fromString(name);
// @ts-ignore: Memory
const b = Memory.fromString(reason);
assert(a.offset, !!outcome, b.offset);
assert(a.offset, BigInt(!!outcome), b.offset);
a.free();
b.free();
}
Expand Down

0 comments on commit 9fd5fc1

Please sign in to comment.