diff options
author | stephan <stephan@noemail.net> | 2022-10-16 16:38:15 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-10-16 16:38:15 +0000 |
commit | 8ffc98999d4fae6598aff02cabf63ba4c3829c95 (patch) | |
tree | f6d5aac87b363a887c112a152f18d1994dfc98ba /ext/wasm/api/sqlite3-api-prologue.js | |
parent | 956392694abaaa832ec3186f7b6af5043f71e623 (diff) | |
download | sqlite-8ffc98999d4fae6598aff02cabf63ba4c3829c95.tar.gz sqlite-8ffc98999d4fae6598aff02cabf63ba4c3829c95.zip |
JS: add build-time-generated version info to the sqlite3.version object. Remove some stray debug output from tester1.js.
FossilOrigin-Name: b5f462c2d85d503f6492ec20580d57cb4c926712f6306a6be764bd09d1f5e8b8
Diffstat (limited to 'ext/wasm/api/sqlite3-api-prologue.js')
-rw-r--r-- | ext/wasm/api/sqlite3-api-prologue.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/wasm/api/sqlite3-api-prologue.js b/ext/wasm/api/sqlite3-api-prologue.js index a267e9345..7d9ae9691 100644 --- a/ext/wasm/api/sqlite3-api-prologue.js +++ b/ext/wasm/api/sqlite3-api-prologue.js @@ -1282,6 +1282,17 @@ self.sqlite3ApiBootstrap = function sqlite3ApiBootstrap( capi, config, /** + Holds the version info of the sqlite3 source tree from which + the generated sqlite3-api.js gets built. Note that its version + may well differ from that reported by sqlite3_libversion(), but + that should be considered a source file mismatch, as the JS and + WASM files are intended to be built and distributed together. + + This object is initially a placeholder which gets replaced by a + build-generated object. + */ + version: Object.create(null), + /** Performs any optional asynchronous library-level initialization which might be required. This function returns a Promise which resolves to the sqlite3 namespace object. Any error in the |