-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[browser][MT] support for NodeJS #92853
Comments
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsWith
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?
|
|
yeah, MT on NodeJS is not even close to ready. Why are you importing the module when you mock it anyway ? |
I mock individual bindings, but not the whole module. Here is an example: https://github.com/Elringus/DotNetJS/blob/feat/revamp/Samples/App/test/computer.test.tsx ( |
This needs emscripten bump to 3.1.52 |
cc @radekdoulik |
With
<WasmEnableThreads>true</WasmEnableThreads>
generateddotnet.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?
The text was updated successfully, but these errors were encountered: