mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
Prior to this commit, if uvwasi_init() failed in any way, Node would abort due to a failed CHECK_EQ(). This commit changes that behavior to a thrown exception. PR-URL: https://github.com/nodejs/node/pull/31076 Fixes: https://github.com/nodejs/node/issues/30878 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
WASI Tests
Compile with clang and wasm32-wasi target. The clang version used must be
built with wasi-libc. You can specify the location for clang and the sysroot
if needed when running make:
$ make CC=/usr/local/opt/llvm/bin/clang SYSROOT=/path/to/wasi-libc/sysroot