Open
Description
With <WasmEnableThreads>true</WasmEnableThreads>
generated dotnet.js
has assert to only be used in browser environment. When imported (w/o actually creating the runtime), following error is thrown:
This build of dotnet is multi-threaded, it doesn't support shell environments like V8 or NodeJS.
This breaks unit testing in node when the dotnet APIs are mocked and the runtime is not initalized, but still has to be imported. After removing the assertion unit testing in node works fine.
Is it possible to remove the assertion or move it to the runtime creation function?