From 1d8f9a2bfbbc445fe50db74a8aa0bf5540fd7cb0 Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Sat, 26 Sep 2026 02:43:42 +0000 Subject: [PATCH] test: use Database in sqlite virtual table test The sqlite classes were renamed from DatabaseSync to Database. The file now imports only `Database`, but the "closes the iterator when a filter is reapplied to the cursor" test landed with a leftover `new DatabaseSync()` call, which throws a ReferenceError. Signed-off-by: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> PR-URL: https://github.com/nodejs/node/pull/66307 Refs: https://github.com/nodejs/node/pull/65988 Reviewed-By: Daeyeon Jeong Reviewed-By: James M Snell Reviewed-By: Filip Skokan --- test/parallel/test-sqlite-virtual-table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-sqlite-virtual-table.js b/test/parallel/test-sqlite-virtual-table.js index c7fffda2f38..67c3990936d 100644 --- a/test/parallel/test-sqlite-virtual-table.js +++ b/test/parallel/test-sqlite-virtual-table.js @@ -561,7 +561,7 @@ suite('DatabaseSync.prototype.createModule()', () => { test('closes the iterator when a filter is reapplied to the cursor', () => { // A correlated subquery re-invokes xFilter on the same cursor per outer // row, abandoning the previous iterator; its `finally` must still run. - const db = new DatabaseSync(':memory:'); + const db = new Database(':memory:'); const cleanedUp = []; db.createModule('refilter_cleanup', {