From: yangdan8 Date: Wed, 24 Sep 2025 09:04:15 +0000 (+0800) Subject: fix(reactivity): update iterator to check for completion instead of value presence... X-Git-Tag: v3.5.22~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2078f8b7565cf637f47fcd5b0abdfb2b264225bb;p=thirdparty%2Fvuejs%2Fcore.git fix(reactivity): update iterator to check for completion instead of value presence (#13761) --- diff --git a/packages/reactivity/src/arrayInstrumentations.ts b/packages/reactivity/src/arrayInstrumentations.ts index 5bb955bfe..981a10d04 100644 --- a/packages/reactivity/src/arrayInstrumentations.ts +++ b/packages/reactivity/src/arrayInstrumentations.ts @@ -215,7 +215,7 @@ function iterator( iter._next = iter.next iter.next = () => { const result = iter._next() - if (result.value) { + if (!result.done) { result.value = wrapValue(result.value) } return result