From: Fabrice Bellard Date: Sat, 31 Oct 2026 17:28:54 +0000 (+0100) Subject: fixed Iterator.prototype.reduce empty iterator closing X-Git-Url: https://git.kaiwu.me/?a=commitdiff_plain;h=de4c9e0ae564040f882c15aa276eca5650a20798;p=quickjs.git fixed Iterator.prototype.reduce empty iterator closing --- diff --git a/quickjs.c b/quickjs.c index 4a4ff06..54eae1d 100644 --- a/quickjs.c +++ b/quickjs.c @@ -46652,7 +46652,7 @@ static JSValue js_iterator_proto_reduce(JSContext *ctx, JSValueConst this_val, goto exception_no_close; if (done) { JS_ThrowTypeError(ctx, "empty iterator"); - goto exception; + goto exception_no_close; } idx = 1; }