[WASM] Workaround for compiled wasm runs under node

This commit is contained in:
Igor Yakovlev
2022-05-03 16:13:18 +02:00
parent 15ba9682e8
commit 3d3526e3d0
2 changed files with 10 additions and 2 deletions
@@ -365,6 +365,7 @@ class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
"esm" -> WasmLoaderKind.BROWSER
"nodejs" -> WasmLoaderKind.NODE
"d8" -> WasmLoaderKind.D8
"d8NodeCompatible" -> WasmLoaderKind.D8NodeCompatible
else -> throw IllegalArgumentException("Unrecognized flavor for the wasm launcher")
}