As @richarddd pointed out, custom allocators in rquickjs don't keep track of allocation size and count which is used by the quickjs GC to determine when to run GC cycles. As a result rquickjs might leak memory when cyclic memory structures are generated.
As @richarddd pointed out, custom allocators in rquickjs don't keep track of allocation size and count which is used by the quickjs GC to determine when to run GC cycles. As a result rquickjs might leak memory when cyclic memory structures are generated.
This PR fixes this issue.
Fixes #251