-
Notifications
You must be signed in to change notification settings - Fork 81
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
When using the IDBBatchAtomicVFS
, we encountered a crash in the jFileControl
method when handling VFS.SQLITE_FCNTL_SYNC
operations.
The issue occurs because file.rollback
may be null
when accessing file.rollback.fileSize
.
wa-sqlite/src/examples/IDBBatchAtomicVFS.js
Lines 483 to 486 in 7a14d78
case VFS.SQLITE_FCNTL_SYNC: | |
this.log?.('xFileControl', file.path, 'SYNC'); | |
const commitMetadata = Object.assign({}, file.metadata); | |
const prevFileSize = file.rollback.fileSize |
I suggest adding a null check for file.rollback
to prevent crashes.
wa-sqlite version: v1.06
Browser: Chrome 133.0.0, 135.0.0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working