yowl
yowl
mm, actually it's a bit more complicated you need basically all the dlls from the browser-wasm build which I can't find now. The easiest thing to do is to replace...
This is what I'm doing for the test projects.
I'm referring to the CoreRT test projects that are enabled for Wasm, e.g. https://github.com/dotnet/corert/tree/master/tests/src/Simple/HelloWasm. For the imports, the normal `Console` is defined in `System` which already has a `using` so...
You can start with https://github.com/yowl/WasmHelloWorld
rand returns int not long so answering the first part myself, if you get the import wrong then naturally things don't work. Curious about the second part though, what would...
Thanks, so the current stack for Random.NextDouble ends with ``` _SystemNative_GetNonCryptographicallySecureRandomBytes@http://localhost:6931/HelloWasm.js:2012:98 _S_P_CoreLib_Interop__GetRandomBytes@http://localhost:6931/HelloWasm.js:1055203:1 _S_P_CoreLib_System_Random__GenerateGlobalSeed@http://localhost:6931/HelloWasm.js:755763:1 _S_P_CoreLib_System_Random___cctor@http://localhost:6931/HelloWasm.js:755461:1 _S_P_CoreLib_System_Runtime_CompilerServices_ClassConstructorRunner__Call_Int32_@http://localhost:6931/HelloWasm.js:530215:1 _S_P_CoreLib_System_Runtime_CompilerServices_ClassConstructorRunner__EnsureClassConstructorRun@http://localhost:6931/HelloWasm.js:497362:1 _S_P_CoreLib_System_Random__GenerateSeed@http://localhost:6931/HelloWasm.js:751509:1 _S_P_CoreLib_System_Random___ctor@http://localhost:6931/HelloWasm.js:725094:1 ``` And if you look in Interop.GetRandomBytes you see ``` internal unsafe...
@am11 thanks for the heads up. Looks like that will do the trick here also.
If its not possible, then I guess the user could just create a bunch of `UnmanagedCallersOnly` methods for all the known entry points. Wouldn't be dynamic, but might be enough....
Not sure that the reason this could be failing is because of the order. The following batch is valid: ``` GOTO END ECHO SKIPPING THIS :END ECHO DONE ``` Maybe...
I wonder if I can ask for some more advice. I would like to pass the dwarf in here https://github.com/bytecodealliance/wasmtime/blob/85ffc394a77d06bea15f460c78251651d154aaae/crates/wasmtime/src/compile.rs#L661 At least that's my current thinking. If I load the...