Commit 38ad98a0aef for nodejs
commit 38ad98a0aef2594fed66f90e2c3329c6f16e7165
Author: Trivikram Kamat <trivikr.dev@gmail.com>
Date: Sat Sep 26 02:43:42 2026 +0000
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 <daeyeon.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
diff --git a/test/parallel/test-sqlite-virtual-table.js b/test/parallel/test-sqlite-virtual-table.js
index c7607beba14..4dc421618fd 100644
--- a/test/parallel/test-sqlite-virtual-table.js
+++ b/test/parallel/test-sqlite-virtual-table.js
@@ -561,7 +561,7 @@ suite('Database.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', {