Skip to content

Commit

Permalink
Add missing BADF return in path_create_directory
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Apr 9, 2024
1 parent a5d4136 commit d224e9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wasi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit d224e9d

Please sign in to comment.