1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Wasm-related doc additions and tweaks.

FossilOrigin-Name: ec55a3aa44a80f661dd451b9ea567449ea4c7353901cfd44a4b50ca10f00ddbd
This commit is contained in:
stephan
2022-08-11 15:45:32 +00:00
parent 9289c47df7
commit fbfe5af903
5 changed files with 127 additions and 28 deletions

View File

@ -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;
/**