From d224e9dff26150cafd681cdb0aef7763109aab28 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Tue, 9 Apr 2024 18:45:07 +0200 Subject: [PATCH] Add missing BADF return in path_create_directory --- src/wasi.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wasi.ts b/src/wasi.ts index 4af8e1a..9309a05 100644 --- a/src/wasi.ts +++ b/src/wasi.ts @@ -581,6 +581,8 @@ export default class WASI { buffer8.slice(path_ptr, path_ptr + path_len), ); return self.fds[fd].path_create_directory(path); + } else { + return wasi.ERRNO_BADF; } }, path_filestat_get(