. If I just set that to true it works, but I guess there's a reason for it ?
i
Igor Yakovlev
05/23/2024, 2:08 PM
Well, the WamsJs STD lib uses some JS API from a browser or NodeJs. So you can mock this API before initialising the module to and it start working as in browser (or nodejs).
b
bernd
05/23/2024, 2:12 PM
ok thank you!
i
Igor Yakovlev
05/23/2024, 2:18 PM
If you dont use any specific API (i.e. uninitilized.mjs file have no JS code that Web-Worker does not support) you can just define
window
as
{}
as a simple workaround.
b
bernd
05/23/2024, 2:29 PM
oh that's good as it wouldnt require modifications to uninstantiated.mjs. nice!