diff options
author | stephan <stephan@noemail.net> | 2022-10-28 11:40:46 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-10-28 11:40:46 +0000 |
commit | f03ddcca3282b7d8fd2cd6e2f8caa142e5cc5be8 (patch) | |
tree | 7c9ea2e5ec129a59e5a9bb6579ca6028e1ffd751 /ext/wasm/api/sqlite3-api-glue.js | |
parent | e681b651eb5cc1da2724ce73b84792b10039152b (diff) | |
download | sqlite-f03ddcca3282b7d8fd2cd6e2f8caa142e5cc5be8.tar.gz sqlite-f03ddcca3282b7d8fd2cd6e2f8caa142e5cc5be8.zip |
Add ext/wasm/module-symbols.html. Adjacent minor JS touchups.
FossilOrigin-Name: 24f12e681e06e3b71a6ac9c82255fe0270953a74c711405841f7e385eeafe874
Diffstat (limited to 'ext/wasm/api/sqlite3-api-glue.js')
-rw-r--r-- | ext/wasm/api/sqlite3-api-glue.js | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/ext/wasm/api/sqlite3-api-glue.js b/ext/wasm/api/sqlite3-api-glue.js index d096af1c8..16840e79f 100644 --- a/ext/wasm/api/sqlite3-api-glue.js +++ b/ext/wasm/api/sqlite3-api-glue.js @@ -104,6 +104,10 @@ self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){ : fI64Disabled(e[0]); } + /* There's no(?) need to expose bindingSignatures to clients, + implicitly making it part of the public interface. */ + delete wasm.bindingSignatures; + if(wasm.exports.sqlite3_wasm_db_error){ util.sqlite3_wasm_db_error = capi.wasm.xWrap( 'sqlite3_wasm_db_error', 'int', 'sqlite3*', 'int', 'string' @@ -115,21 +119,21 @@ self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){ }; } - /** - When registering a VFS and its related components it may be - necessary to ensure that JS keeps a reference to them to keep - them from getting garbage collected. Simply pass each such value - to this function and a reference will be held to it for the life - of the app. - */ - capi.sqlite3_vfs_register.addReference = function f(...args){ - if(!f._) f._ = []; - f._.push(...args); - }; - }/*xWrap() bindings*/; /** + When registering a VFS and its related components it may be + necessary to ensure that JS keeps a reference to them to keep + them from getting garbage collected. Simply pass each such value + to this function and a reference will be held to it for the life + of the app. + */ + capi.sqlite3_vfs_register.addReference = function f(...args){ + if(!f._) f._ = []; + f._.push(...args); + }; + + /** Internal helper to assist in validating call argument counts in the hand-written sqlite3_xyz() wrappers. We do this only for consistency with non-special-case wrappings. |