mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
JS: remove an unused function argument and some debug-related comments. No functional changes.
FossilOrigin-Name: f15709430d4ba2fcf5729bc30a45dacb77102927b82cda12de0b67935b526cc0
This commit is contained in:
@ -51,7 +51,7 @@
|
||||
*/
|
||||
"use strict";
|
||||
const wPost = (type,...args)=>postMessage({type, payload:args});
|
||||
const installAsyncProxy = function(self){
|
||||
const installAsyncProxy = function(){
|
||||
const toss = function(...args){throw new Error(args.join(' '))};
|
||||
if(globalThis.window === globalThis){
|
||||
toss("This code cannot run from the main thread.",
|
||||
@ -563,12 +563,9 @@ const installAsyncProxy = function(self){
|
||||
return;
|
||||
}
|
||||
if( state.opfsFlags.OPFS_UNLINK_BEFORE_OPEN & opfsFlags ){
|
||||
//log("async proxy opfsFlags =",opfsFlags);
|
||||
try{
|
||||
await hDir.removeEntry(filenamePart);
|
||||
//log("Unlinked",filename,hDir,filenamePart);
|
||||
}
|
||||
catch(e){
|
||||
}catch(e){
|
||||
/* ignoring */
|
||||
//warn("Ignoring failed Unlink of",filename,":",e);
|
||||
}
|
||||
@ -922,5 +919,5 @@ if(!globalThis.SharedArrayBuffer){
|
||||
!navigator?.storage?.getDirectory){
|
||||
wPost('opfs-unavailable',"Missing required OPFS APIs.");
|
||||
}else{
|
||||
installAsyncProxy(self);
|
||||
installAsyncProxy();
|
||||
}
|
||||
|
Reference in New Issue
Block a user