aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-api-worker1.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2023-02-06 14:01:19 +0000
committerstephan <stephan@noemail.net>2023-02-06 14:01:19 +0000
commit3ff812aa94644dc60bda6933de8b4870d9f5cba6 (patch)
treee368c239e49016b898dc4db1b49f21022e30ee8d /ext/wasm/api/sqlite3-api-worker1.js
parentee18659f69d15498f233cb987b7f7db21445f4a4 (diff)
downloadsqlite-3ff812aa94644dc60bda6933de8b4870d9f5cba6.tar.gz
sqlite-3ff812aa94644dc60bda6933de8b4870d9f5cba6.zip
Add capability to override the JS's use of console.log/debug/warn/error() with client-provided versions via the bootstrap-time config object.
FossilOrigin-Name: c54f29d8e55419eaa9168e799dab5030e89063b13d8390a50616606422d164dc
Diffstat (limited to 'ext/wasm/api/sqlite3-api-worker1.js')
-rw-r--r--ext/wasm/api/sqlite3-api-worker1.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/wasm/api/sqlite3-api-worker1.js b/ext/wasm/api/sqlite3-api-worker1.js
index 58b9b0091..f82be6cd0 100644
--- a/ext/wasm/api/sqlite3-api-worker1.js
+++ b/ext/wasm/api/sqlite3-api-worker1.js
@@ -612,8 +612,8 @@ sqlite3.initWorker1API = function(){
result.stack = ('string'===typeof err.stack)
? err.stack.split(/\n\s*/) : err.stack;
}
- if(0) console.warn("Worker is propagating an exception to main thread.",
- "Reporting it _here_ for the stack trace:",err,result);
+ if(0) sqlite3.config.warn("Worker is propagating an exception to main thread.",
+ "Reporting it _here_ for the stack trace:",err,result);
}
if(!dbId){
dbId = result.dbId/*from 'open' cmd*/