diff options
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; /** |