quickjs icon indicating copy to clipboard operation
quickjs copied to clipboard

Fix GC leak in handling of `JS_IteratorNext()` result

Open xeioex opened this issue 1 year ago • 0 comments

The code below triggers all the fixed code-paths.

function* f() {
   return [];
}

Array.from(f());
AggregateError(f());
Uint8Array.from(f());
Promise.race(f());
Promise.all(f());
Object.groupBy(f(), ({ type }) => type);
[...f()]

xeioex avatar May 14 '24 23:05 xeioex