diff options
author | stephan <stephan@noemail.net> | 2022-12-15 02:28:55 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-12-15 02:28:55 +0000 |
commit | 73b471964b872eaa99a4f3d7243fbfa9497fbe0c (patch) | |
tree | 3f5b4368cd29e651abf71bce68764488fa2c9b39 /ext/wasm/api/sqlite3-api-glue.js | |
parent | d60061616fbec1deb0c0d22f31ef016a9a76a450 (diff) | |
download | sqlite-73b471964b872eaa99a4f3d7243fbfa9497fbe0c.tar.gz sqlite-73b471964b872eaa99a4f3d7243fbfa9497fbe0c.zip |
Internal refactoring of how sqlite3.wasm.xWrap() handles JS-to-C function pointer conversions, to enable similar conversions to be added more easily.
FossilOrigin-Name: 10cfe3fae6f680d3ecc3b0afbbf628ce91e34e3757b19dd27c231f0daf44232a
Diffstat (limited to 'ext/wasm/api/sqlite3-api-glue.js')
-rw-r--r-- | ext/wasm/api/sqlite3-api-glue.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/wasm/api/sqlite3-api-glue.js b/ext/wasm/api/sqlite3-api-glue.js index 972b4a2e0..5488f26c9 100644 --- a/ext/wasm/api/sqlite3-api-glue.js +++ b/ext/wasm/api/sqlite3-api-glue.js @@ -138,7 +138,7 @@ self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){ the range of supported argument types. */ [ "sqlite3_progress_handler", undefined, [ - "sqlite3*", "int", wasm.xWrap.FuncPtrAdapter({ + "sqlite3*", "int", new wasm.xWrap.FuncPtrAdapter({ name: 'xProgressHandler', signature: 'i(p)', bindScope: 'context', @@ -180,7 +180,7 @@ self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){ "**", "**", "*", "*", "*"], ["sqlite3_total_changes", "int", "sqlite3*"], ["sqlite3_trace_v2", "int", "sqlite3*", "int", - wasm.xWrap.FuncPtrAdapter({ + new wasm.xWrap.FuncPtrAdapter({ name: 'sqlite3_trace_v2::callback', signature: 'i(ippp)', contextKey: (argIndex, argv)=>'sqlite3@'+argv[0] @@ -469,14 +469,14 @@ self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){ 'sqlite3*','string','int','*', new wasm.xWrap.FuncPtrAdapter({ /* int(*xCompare)(void*,int,const void*,int,const void*) */ - name: 'xCompare', + name: 'sqlite3_create_collation_v2::xCompare', signature: 'i(pipip)', bindScope: 'context', contextKey: __collationContextKey }), new wasm.xWrap.FuncPtrAdapter({ /* void(*xDestroy(void*) */ - name: 'xDestroy', + name: 'sqlite3_create_collation_v2::xDestroy', signature: 'v(p)', bindScope: 'context', contextKey: __collationContextKey |