diff options
author | stephan <stephan@noemail.net> | 2022-09-30 16:49:03 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-09-30 16:49:03 +0000 |
commit | d18f1bbfe06e40713de908cd894d9857f6c11606 (patch) | |
tree | 9fbee42176f6610f50ac62f5ddf294eca0509db7 /ext/wasm/api/sqlite3-api-prologue.js | |
parent | 07c0b722530b67cf9c56129da386e809efa5bdc2 (diff) | |
download | sqlite-d18f1bbfe06e40713de908cd894d9857f6c11606.tar.gz sqlite-d18f1bbfe06e40713de908cd894d9857f6c11606.zip |
Add sqlite3.version object. Add more state to the Worker #1 config-get response, including sqlite3.version.
FossilOrigin-Name: 711f458d188a0dbe6612069c856ade29323ab426dfa4f80e7b82757ccc474cb8
Diffstat (limited to 'ext/wasm/api/sqlite3-api-prologue.js')
-rw-r--r-- | ext/wasm/api/sqlite3-api-prologue.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ext/wasm/api/sqlite3-api-prologue.js b/ext/wasm/api/sqlite3-api-prologue.js index 8443d66ee..760c4b0b4 100644 --- a/ext/wasm/api/sqlite3-api-prologue.js +++ b/ext/wasm/api/sqlite3-api-prologue.js @@ -927,13 +927,16 @@ self.sqlite3ApiBootstrap = function sqlite3ApiBootstrap( subsequent calls are no-ops which return a pre-resolved Promise. - If called at all, this function must be called by client-level - code, which must not use the library until the returned promise - resolves. + Ideally this function is called as part of the Promise chain + which handles the loading and bootstrapping of the API. If not + then it must be called by client-level code, which must not use + the library until the returned promise resolves. Bug: if called while a prior call is still resolving, the 2nd call will resolve prematurely, before the 1st call has finished - resolving. + resolving. The current build setup precludes that possibility, + so it's only a hypothetical problem if/when this function + ever needs to be invoked by clients. In Emscripten-based builds, this function is called automatically and deleted from this object. |