fix(reactivity): update iterator to check for completion instead of value presence (#13761)

This commit is contained in:
yangdan8 2025-09-24 17:04:15 +08:00 committed by GitHub
parent abd563822a
commit 2078f8b756
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ function iterator(
iter._next = iter.next iter._next = iter.next
iter.next = () => { iter.next = () => {
const result = iter._next() const result = iter._next()
if (result.value) { if (!result.done) {
result.value = wrapValue(result.value) result.value = wrapValue(result.value)
} }
return result return result