aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-opfs-async-proxy.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2023-02-06 21:20:59 +0000
committerstephan <stephan@noemail.net>2023-02-06 21:20:59 +0000
commit9f29998d2a8890d58b52d13605324193703525c3 (patch)
tree9c9fd2f99e72072b04b757b5f4325da8954b065f /ext/wasm/api/sqlite3-opfs-async-proxy.js
parent8057fe9baa02bb44f0e8623e7e4c1d9a42c64a3b (diff)
downloadsqlite-9f29998d2a8890d58b52d13605324193703525c3.tar.gz
sqlite-9f29998d2a8890d58b52d13605324193703525c3.zip
Roll back part of [c54f29d8] which attempted to use symbols which that worker does not have access to.
FossilOrigin-Name: 90b12211376eb445df7221b3d3593394ff651ef93f4218492c6208bc74b8fc63
Diffstat (limited to 'ext/wasm/api/sqlite3-opfs-async-proxy.js')
-rw-r--r--ext/wasm/api/sqlite3-opfs-async-proxy.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/wasm/api/sqlite3-opfs-async-proxy.js b/ext/wasm/api/sqlite3-opfs-async-proxy.js
index b1ad9152e..1456ae08d 100644
--- a/ext/wasm/api/sqlite3-opfs-async-proxy.js
+++ b/ext/wasm/api/sqlite3-opfs-async-proxy.js
@@ -74,9 +74,9 @@ const installAsyncProxy = function(self){
state.verbose = 1;
const loggers = {
- 0:sqlite3.config.error.bind(console),
- 1:sqlite3.config.warn.bind(console),
- 2:sqlite3.config.log.bind(console)
+ 0:console.error.bind(console),
+ 1:console.warn.bind(console),
+ 2:console.log.bind(console)
};
const logImpl = (level,...args)=>{
if(state.verbose>level) loggers[level]("OPFS asyncer:",...args);
@@ -106,12 +106,12 @@ const installAsyncProxy = function(self){
w += m.wait;
m.avgTime = (m.count && m.time) ? (m.time / m.count) : 0;
}
- sqlite3.config.log(self.location.href,
+ console.log(self.location.href,
"metrics for",self.location.href,":\n",
metrics,
"\nTotal of",n,"op(s) for",t,"ms",
"approx",w,"ms spent waiting on OPFS APIs.");
- sqlite3.config.log("Serialization metrics:",metrics.s11n);
+ console.log("Serialization metrics:",metrics.s11n);
};
/**
@@ -272,7 +272,7 @@ const installAsyncProxy = function(self){
|| (e.cause.name==='DOMException'
&& 0===e.cause.message.indexOf('Access Handles cannot')))
) ? (
- /*sqlite3.config.warn("SQLITE_BUSY",e),*/
+ /*console.warn("SQLITE_BUSY",e),*/
state.sq3Codes.SQLITE_BUSY
) : rc;
}else{