aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-api-glue.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-10-13 16:48:35 +0000
committerstephan <stephan@noemail.net>2022-10-13 16:48:35 +0000
commitd92c652ac1fe570e27acd83e15903fb695386880 (patch)
tree18fa59ddc4e4960babfdbdf048193486691abba5 /ext/wasm/api/sqlite3-api-glue.js
parent921acff92767b6dcda8ed2134c73497fe33905c6 (diff)
downloadsqlite-d92c652ac1fe570e27acd83e15903fb695386880.tar.gz
sqlite-d92c652ac1fe570e27acd83e15903fb695386880.zip
Move the rest of testing1.js into tester1.js and eliminate the dependency on jaccwabyt_test.c. Extend the list of default config-related #defines in sqlite3-wasm.c and reorganize them for maintainability.
FossilOrigin-Name: 4e2a8aff2dd4b6e148f45184e2523ebe47815257eca97fa3d32bcbf9625f0def
Diffstat (limited to 'ext/wasm/api/sqlite3-api-glue.js')
-rw-r--r--ext/wasm/api/sqlite3-api-glue.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/wasm/api/sqlite3-api-glue.js b/ext/wasm/api/sqlite3-api-glue.js
index 6f7301ece..fd1f0c3e0 100644
--- a/ext/wasm/api/sqlite3-api-glue.js
+++ b/ext/wasm/api/sqlite3-api-glue.js
@@ -592,8 +592,14 @@ self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
*/
capi.sqlite3_web_rc_str = (rc)=>__rcMap[rc];
/* Bind all registered C-side structs... */
+ const notThese = Object.assign(Object.create(null),{
+ // Structs NOT to register
+ WasmTestStruct: true
+ });
for(const s of wasm.ctype.structs){
- capi[s.name] = sqlite3.StructBinder(s);
+ if(!notThese[s.name]){
+ capi[s.name] = sqlite3.StructBinder(s);
+ }
}
}/*end C constant imports*/