aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-12-05 05:45:00 +0000
committerstephan <stephan@noemail.net>2022-12-05 05:45:00 +0000
commit864c3c029b869e5bfc58fcdf35f883e38c2cfa0d (patch)
tree70f8a4ccdc10767ec934e6155c186818393e06d6 /ext/wasm/api
parente1774479727bd2093f7bfcf38fd52a28eca6ff04 (diff)
downloadsqlite-864c3c029b869e5bfc58fcdf35f883e38c2cfa0d.tar.gz
sqlite-864c3c029b869e5bfc58fcdf35f883e38c2cfa0d.zip
Remove some dead code. Improve some error checks and comments.
FossilOrigin-Name: 6712fbe46a97867cea309f78a274edbb6bd166a505b41e18a580306da0e063db
Diffstat (limited to 'ext/wasm/api')
-rw-r--r--ext/wasm/api/sqlite3-api-glue.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/wasm/api/sqlite3-api-glue.js b/ext/wasm/api/sqlite3-api-glue.js
index eddcfddd1..582b0c0a3 100644
--- a/ext/wasm/api/sqlite3-api-glue.js
+++ b/ext/wasm/api/sqlite3-api-glue.js
@@ -632,10 +632,11 @@ self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
capi.sqlite3_js_rc_str = (rc)=>__rcMap[rc];
/* Bind all registered C-side structs... */
const notThese = Object.assign(Object.create(null),{
- // For each struct to NOT register, map its name to false:
+ // For each struct to NOT register, map its name to true:
WasmTestStruct: true,
- /* We remove the kvvfs VFS from Worker threads below. */
+ /* We unregister the kvvfs VFS from Worker threads below. */
sqlite3_kvvfs_methods: !util.isUIThread(),
+ /* sqlite3_index_info and friends require int64: */
sqlite3_index_info: !wasm.bigIntEnabled,
sqlite3_index_constraint: !wasm.bigIntEnabled,
sqlite3_index_orderby: !wasm.bigIntEnabled,