quickjs
quickjs copied to clipboard
Fix GC leak in handling of `JS_IteratorNext()` result
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()]