diff options
author | stephan <stephan@noemail.net> | 2022-08-11 15:45:32 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-08-11 15:45:32 +0000 |
commit | fbfe5af903845ca42834252991d8a8f06daceac5 (patch) | |
tree | 24cf6f61475b5f70b418661ed24cfdf50b584b07 /ext/wasm/api/sqlite3-api-worker.js | |
parent | 9289c47df720a2312ed50862adfd23448b979659 (diff) | |
download | sqlite-fbfe5af903845ca42834252991d8a8f06daceac5.tar.gz sqlite-fbfe5af903845ca42834252991d8a8f06daceac5.zip |
Wasm-related doc additions and tweaks.
FossilOrigin-Name: ec55a3aa44a80f661dd451b9ea567449ea4c7353901cfd44a4b50ca10f00ddbd
Diffstat (limited to 'ext/wasm/api/sqlite3-api-worker.js')
-rw-r--r-- | ext/wasm/api/sqlite3-api-worker.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/wasm/api/sqlite3-api-worker.js b/ext/wasm/api/sqlite3-api-worker.js index 1d13d4ed6..3b5c1362a 100644 --- a/ext/wasm/api/sqlite3-api-worker.js +++ b/ext/wasm/api/sqlite3-api-worker.js @@ -84,10 +84,9 @@ self.sqlite3.initWorkerAPI = function(){ if('function' !== typeof importScripts){ toss("Cannot initalize the sqlite3 worker API in the main thread."); } - /* This is a web worker, so init the worker-based API. */ const self = this.self; - const sqlite3 = this.sqlite3 || toss("Missing self.sqlite3 object."); - const SQLite3 = sqlite3.oo1 || toss("Missing self.sqlite3.oo1 OO API."); + const sqlite3 = this.sqlite3 || toss("Missing this.sqlite3 object."); + const SQLite3 = sqlite3.oo1 || toss("Missing this.sqlite3.oo1 OO API."); const DB = SQLite3.DB; /** |