Skip to content

Commit 176377a

Browse files
fix kInitialized bug
1 parent 7636820 commit 176377a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cursor/abstract_cursor.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,9 +663,11 @@ export abstract class AbstractCursor<
663663
this[kDocuments].push(state.response as TODO_NODE_3286);
664664
}
665665

666-
// the cursor is now initialized, even if an error occurred or it is dead
666+
// the cursor is now initialized, even if it is dead
667667
this[kInitialized] = true;
668668
} catch (error) {
669+
// the cursor is now initialized, even if an error occurred
670+
this[kInitialized] = true;
669671
await cleanupCursor(this, { error });
670672
throw error;
671673
}

0 commit comments

Comments
 (0)