]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(reactivity): update iterator to check for completion instead of value presence...
authoryangdan8 <yangdan1@wps.cn>
Wed, 24 Sep 2025 09:04:15 +0000 (17:04 +0800)
committerGitHub <noreply@github.com>
Wed, 24 Sep 2025 09:04:15 +0000 (17:04 +0800)
packages/reactivity/src/arrayInstrumentations.ts

index 5bb955bfeddde2fa69b268f59167632c507a63ae..981a10d04fc0c570cb2e9180c3c1a176906e6d38 100644 (file)
@@ -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