Add wasm3 to the set of supported WebAssembly runtimes

This commit is contained in:
Frank Denis
2020-02-04 19:52:25 +01:00
parent 89f3a09737
commit d227affc63
+6
View File
@@ -30,5 +30,11 @@ if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wasmer-js" ]; then
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