0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/wasi
cjihrig 208453ef42
wasi: throw on failed uvwasi_init()
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>
2019-12-25 22:27:11 -05:00
..
c
wasm deps,src,test: update to uvwasi 0.0.3 2019-12-17 17:35:09 -08:00
Makefile
README.md
test-wasi-options-validation.js wasi: throw on failed uvwasi_init() 2019-12-25 22:27:11 -05:00
test-wasi-require-flag.js wasi: require CLI flag to require() wasi module 2019-12-17 06:02:04 +01:00
test-wasi-start-validation.js doc,lib,src,test: rename WASI CLI flag 2019-12-17 17:35:12 -08:00
test-wasi-symlinks.js doc,lib,src,test: rename WASI CLI flag 2019-12-17 17:35:12 -08:00
test-wasi.js doc,lib,src,test: rename WASI CLI flag 2019-12-17 17:35:12 -08:00
testcfg.py
wasi.status

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