diff options
author | stephan <stephan@noemail.net> | 2023-01-04 03:14:06 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2023-01-04 03:14:06 +0000 |
commit | 5d2a25b25471428f21846ad84c1bdff479705d04 (patch) | |
tree | 2358b3ae91d9684575e5799042618a7d00d9b3a7 /ext/wasm/api/sqlite3-wasm.c | |
parent | a9e1e4edafc2d29116d2e1c7cfc6b0c1c992b9f2 (diff) | |
download | sqlite-5d2a25b25471428f21846ad84c1bdff479705d04.tar.gz sqlite-5d2a25b25471428f21846ad84c1bdff479705d04.zip |
Remove the JS-side SQLITE_WASM_DEALLOC sanity check which triggers the problem mentioned in [688c5c13d156] and [ae0196d86ee8], for reasons covered in the code comments, per discussion in [forum:e5b20e1feb|forum post e5b20e1feb].
FossilOrigin-Name: 65ff3200c6009a1649fc108d7ce36f5c014185ba46bbf98471ec86eaeb572656
Diffstat (limited to 'ext/wasm/api/sqlite3-wasm.c')
-rw-r--r-- | ext/wasm/api/sqlite3-wasm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/wasm/api/sqlite3-wasm.c b/ext/wasm/api/sqlite3-wasm.c index ba629481c..e7513509c 100644 --- a/ext/wasm/api/sqlite3-wasm.c +++ b/ext/wasm/api/sqlite3-wasm.c @@ -464,12 +464,8 @@ const char * sqlite3_wasm_enum_json(void){ /* SQLITE_STATIC/TRANSIENT need to be handled explicitly as ** integers to avoid casting-related warnings. */ out("\"SQLITE_STATIC\":0, \"SQLITE_TRANSIENT\":-1"); -#if 0 - /* This approach to exporting SQLITE_WASM_DEALLOC as a pointer to - sqlite3_free fails in Safari. */ outf(",\"SQLITE_WASM_DEALLOC\": %lld", (sqlite3_int64)(sqlite3_free)); -#endif } _DefGroup; DefGroup(changeset){ @@ -1597,6 +1593,9 @@ int sqlite3_wasm_config_j(int op, sqlite3_int64 arg){ return sqlite3_config(op, arg); } +#if 0 +// Pending removal after verification of a workaround discussed in the +// forum post linked to below. /* ** This function is NOT part of the sqlite3 public API. It is strictly ** for use by the sqlite project's own JS/WASM bindings. @@ -1622,6 +1621,7 @@ SQLITE_WASM_KEEP void * sqlite3_wasm_ptr_to_sqlite3_free(void){ return (void*)sqlite3_free; } +#endif #if defined(__EMSCRIPTEN__) && defined(SQLITE_ENABLE_WASMFS) #include <emscripten/wasmfs.h> |