summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2020-08-27 17:38:12 +0800
committerGitHub <noreply@github.com>2020-08-27 11:38:12 +0200
commit672350b206f015e422ecf686b6c5becba63650a9 (patch)
tree7d2b7a7988f60369c2647b15f24236591e48ab7d
parent992248e7318dd7c934703ec20f954504ac58b5d6 (diff)
fix(std/wasi): invalid number to bigint conversion in fd_tell (#7215)
-rw-r--r--std/wasi/snapshot_preview1.ts2
m---------std/wasi/testdata0
2 files changed, 1 insertions, 1 deletions
diff --git a/std/wasi/snapshot_preview1.ts b/std/wasi/snapshot_preview1.ts
index f62d93a94..dc081a8dc 100644
--- a/std/wasi/snapshot_preview1.ts
+++ b/std/wasi/snapshot_preview1.ts
@@ -915,7 +915,7 @@ export default class Context {
const view = new DataView(this.memory.buffer);
const offset = entry.handle.seekSync(0, Deno.SeekMode.Current);
- view.setBigUint64(offset_out, offset, true);
+ view.setBigUint64(offset_out, BigInt(offset), true);
return ERRNO_SUCCESS;
}),
diff --git a/std/wasi/testdata b/std/wasi/testdata
-Subproject bbdc8e545d2e96aad747b0b20e4cf140690899d
+Subproject c2a9246e011b7be6db826b6bde9f024302473fc