1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Refactor kvvfs JS bits to make use of [ea370b9b05f7ed7eaa]. At main-thread startup, if kvvfs is available, replace the kvvfs I/O methods with JS impls. Checkin part 2 of 2, to account for cherrypicking [ea370b9b05f7ed7eaa] into the kv-vfs branch.

FossilOrigin-Name: a9047e020a097b2259bc9935b63ca1c538a3a7f1d050e15f0d0a08cfb84acc7c
This commit is contained in:
stephan
2022-10-09 13:26:15 +00:00
parent d35b5587df
commit 4fbf90ee11
5 changed files with 140 additions and 11 deletions

View File

@ -1313,7 +1313,7 @@ self.sqlite3ApiBootstrap = function sqlite3ApiBootstrap(
// to resolve in order? We currently only have 1, so it
// makes no difference.
lip = lip.map((f)=>f(sqlite3).catch((e)=>{
console.error("An async sqlite3 initializer failed:",e);
console.error("Ignoring error: an async sqlite3 initializer failed:",e);
}));
//let p = lip.shift();
//while(lip.length) p = p.then(lip.shift());