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 <midawson@redhat.com>

PR-URL: nodejs/node#49908
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
sercher committed Apr 24, 2024
1 parent ce247c8 commit f2f6afe
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 f2f6afe

Please sign in to comment.