diff options
author | stephan <stephan@noemail.net> | 2023-01-01 12:22:16 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2023-01-01 12:22:16 +0000 |
commit | a347927d60c70686c995bd453bd3ca7b1e3f24c8 (patch) | |
tree | 832807f7b6733774f02a52b52c7ecd971dae29c6 /ext/wasm/api/sqlite3-wasm.c | |
parent | 206db97ddd781f526805a9bea534b90b5565bf05 (diff) | |
download | sqlite-a347927d60c70686c995bd453bd3ca7b1e3f24c8.tar.gz sqlite-a347927d60c70686c995bd453bd3ca7b1e3f24c8.zip |
An alternative solution to mapping SQLITE_WASM_DEALLOC to the proper function pointer in JS, to account for a Safari-specific quirk reported in [forum:e5b20e1feb|forum post e5b20e1feb].
FossilOrigin-Name: 688c5c13d156f987b895df1d5a5b770616b0d9caec4726e03ba122eb8539e7b2
Diffstat (limited to 'ext/wasm/api/sqlite3-wasm.c')
-rw-r--r-- | ext/wasm/api/sqlite3-wasm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/wasm/api/sqlite3-wasm.c b/ext/wasm/api/sqlite3-wasm.c index b39e252b1..981fad92b 100644 --- a/ext/wasm/api/sqlite3-wasm.c +++ b/ext/wasm/api/sqlite3-wasm.c @@ -463,7 +463,9 @@ const char * sqlite3_wasm_enum_json(void){ DefGroup(blobFinalizers) { /* SQLITE_STATIC/TRANSIENT need to be handled explicitly as ** integers to avoid casting-related warnings. */ - out("\"SQLITE_STATIC\":0, \"SQLITE_TRANSIENT\":-1"); + out("\"SQLITE_STATIC\":0, \"SQLITE_TRANSIENT\":-1,"); + outf("\"SQLITE_WASM_DEALLOC\": %lld", + (sqlite3_int64)(sqlite3_free)); } _DefGroup; DefGroup(changeset){ |