bellard
bellard
the issue was fixed by adding an interrupt handling in regexp.
I cannot reproduce it.
Note that I did not merge the quickjs-ng WeakRef implementation because it adds a pointer in each JSString which adds too much memory overhead IMHO. This implementation is not better...
The weakref implemented was reworked in quickjs because it was incompatible with correct cycle handling. Moreover it was quite inefficient when an object has several weakrefs to it.
I though that using JS_GetClassProto() and then accessing the "constructor" property solved the issue.
It should work as expected now.
libbf.c was removed.
A module asynchronously returns either undefined or an exception.
This patch is not correct because "null" is a valid exception. Currently, the only way to test an exception is to test if JS_EXCEPTION is returned. The content of "current_exception"...
`null `is a valid exception, so testing for `JS_NULL` is not correct even if `current_exception` is defined all the time (try `throw null`). We may initialize it to `JS_UNINITIALIZED` instead.