aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-opfs-async-proxy.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2024-03-14 13:18:19 +0000
committerstephan <stephan@noemail.net>2024-03-14 13:18:19 +0000
commit5a0fd81fcec15afd0ecdcbb565b6014ad21b2c96 (patch)
tree4fa0e7a16ef8a76d1118801a2975a8a96f0fce72 /ext/wasm/api/sqlite3-opfs-async-proxy.js
parent81a244c514a5273b8b293bcc68cf2467c9b8c771 (diff)
downloadsqlite-5a0fd81fcec15afd0ecdcbb565b6014ad21b2c96.tar.gz
sqlite-5a0fd81fcec15afd0ecdcbb565b6014ad21b2c96.zip
JS: remove an unused function argument and some debug-related comments. No functional changes.
FossilOrigin-Name: f15709430d4ba2fcf5729bc30a45dacb77102927b82cda12de0b67935b526cc0
Diffstat (limited to 'ext/wasm/api/sqlite3-opfs-async-proxy.js')
-rw-r--r--ext/wasm/api/sqlite3-opfs-async-proxy.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/ext/wasm/api/sqlite3-opfs-async-proxy.js b/ext/wasm/api/sqlite3-opfs-async-proxy.js
index 58b8bcb23..e671094f0 100644
--- a/ext/wasm/api/sqlite3-opfs-async-proxy.js
+++ b/ext/wasm/api/sqlite3-opfs-async-proxy.js
@@ -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();
}