From 473a2c6caa7961cc4089d64f77602f785c5e8f10 Mon Sep 17 00:00:00 2001 From: MickaelK Date: Fri, 25 Apr 2025 11:46:53 +1000 Subject: [PATCH] chore (wasi): wasi API --- public/assets/helpers/loader_wasm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/assets/helpers/loader_wasm.js b/public/assets/helpers/loader_wasm.js index 0051393a..07af6fac 100644 --- a/public/assets/helpers/loader_wasm.js +++ b/public/assets/helpers/loader_wasm.js @@ -70,7 +70,7 @@ function getFile(path) { return FS[allFds[i]]; } } - throw new Error("cannot get file"); + throw new Error(`cannot get file "${path}"`); } export const syscalls = { @@ -325,7 +325,7 @@ export class Wasi { return 0; } - fd_seek(fd, offsetBigInt, whence) { // fd, offsetBigInt, _, whence TODO: fix bigInt issue + fd_seek(fd, offsetBigInt, _, whence) { log(`wasi::fd_seek fd=${fd} offset=${offsetBigInt} whence=${whence}`); const offset = Number(offsetBigInt); const file = FS[fd];