Skip to content

Commit

Permalink
wasi: updates required for latest uvwasi version
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Dawson <[email protected]>

PR-URL: nodejs/node#49908
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
sercher committed Apr 25, 2024
1 parent e98630d commit 7486c20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion graal-nodejs/deps/uvwasi/uvwasi.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
'src/fd_table.c',
'src/path_resolver.c',
'src/poll_oneoff.c',
'src/sync_helpers.c',
'src/uv_mapping.c',
'src/uvwasi.c',
'src/wasi_rights.c',
Expand All @@ -36,4 +37,4 @@
],
}
]
}
}
4 changes: 2 additions & 2 deletions graal-nodejs/test/wasi/c/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ int main(void) {
int fd = 0 ;
socklen_t addrlen = 0;
int flags = 0;
int ret = accept(0, NULL, &addrlen);
int ret = accept(10, NULL, &addrlen);
assert(ret == -1);
assert(errno == ENOTSUP);
assert(errno == EBADF);

return 0;
}
Binary file modified graal-nodejs/test/wasi/wasm/sock.wasm
Binary file not shown.

0 comments on commit 7486c20

Please sign in to comment.