From de4c9e0ae564040f882c15aa276eca5650a20798 Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Sat, 31 Oct 2026 18:28:54 +0100 Subject: [PATCH] fixed Iterator.prototype.reduce empty iterator closing --- quickjs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.3