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

Minor cleaups in the post-init async phase of sqlite3 module initialization.

FossilOrigin-Name: 2e024a6b533524b7732cea8aa27b16363e17b4c32731ddf31085e91fc728c1af
This commit is contained in:
stephan
2022-10-09 15:12:37 +00:00
parent 392fd3ce37
commit ff891b4e1c
4 changed files with 35 additions and 24 deletions

View File

@ -1093,7 +1093,9 @@ installOpfsVfs.defaultProxyUri =
//console.warn("sqlite3.installOpfsVfs.defaultProxyUri =",sqlite3.installOpfsVfs.defaultProxyUri);
self.sqlite3ApiBootstrap.initializersAsync.push(async (sqlite3)=>{
try{
return installOpfsVfs();
return installOpfsVfs().catch((e)=>{
console.warn("Ignoring inability to install OPFS sqlite3_vfs:",e);
});
}catch(e){
console.error("installOpfsVfs() exception:",e);
throw e;