Skip to content

Commit 50f04a9

Browse files
committed
✨ feat: validate VFS type parameter by throwing an error for unsupported types.
1 parent 2ba554a commit 50f04a9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/worker/sqliteWorker.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ async function initDatabase(config: SQLiteWASMConfig) {
5555
} else if (vfsType === 'memory') {
5656
// In-memory database
5757
PoolUtil = null;
58+
} else {
59+
throw new Error(`Unsupported VFS type: ${vfsType}`);
5860
}
5961
}
6062

0 commit comments

Comments
 (0)