Add wasm3 to the set of supported WebAssembly runtimes

Also add wasmer-js
This commit is contained in:
Frank Denis 2020-02-04 19:52:25 +01:00
parent f20e6fdad2
commit b6e61122a4

View File

@ -14,5 +14,17 @@ if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wasmer" ]; then
fi
fi
if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wasmer-js" ]; then
if command -v wasmer-js >/dev/null; then
wasmer-js run "$1" --dir=. && exit 0
fi
fi
if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wasm3" ]; then
if command -v wasm3 >/dev/null; then
wasm3 "$1" && exit 0
fi
fi
echo "WebAssembly runtime failed" >&2
exit 1