bellard
bellard
`qjsc -M` works only when C modules are statically imported. I agree it would make sense to allow dynamic imports as well.
Unfortunately there are many places in the quickjs initialization where failures are not tested, so fixing JS_NewClass() is useless if the rest is not fixed as well.
I am referring all the init functions, in particular JS_NewContext(), js_std_init and js_os_init().
A new version was released.
Note that in normal cases you want to share the class ID between all the JSRuntimes so that they can easily communicate. In this case, locking is not needed and...
It works as designed i.e. the error happens while executing the module and if there is a "onmessage" handler on the worker the main loop keeps running. We could add...