aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-api-glue.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2024-04-24 06:43:17 +0000
committerstephan <stephan@noemail.net>2024-04-24 06:43:17 +0000
commit99200b2f07034d516e863e32cc35ff0cc4c0a653 (patch)
treef1a2c54d8eceff26ac95f0ea88f76ee24f1fb6fa /ext/wasm/api/sqlite3-api-glue.js
parent14602eafa74c2551deeb606b8de2ff9e4190be46 (diff)
downloadsqlite-99200b2f07034d516e863e32cc35ff0cc4c0a653.tar.gz
sqlite-99200b2f07034d516e863e32cc35ff0cc4c0a653.zip
Remove an undocumented feature from the JS Worker1.open API because it relies on broken behavior which has no VFS-agnostic workaround.
FossilOrigin-Name: 3a640038c70c8511e7051af83aa35d163c4f96f05c5064cffd3e4e2e63cd44a9
Diffstat (limited to 'ext/wasm/api/sqlite3-api-glue.js')
-rw-r--r--ext/wasm/api/sqlite3-api-glue.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/wasm/api/sqlite3-api-glue.js b/ext/wasm/api/sqlite3-api-glue.js
index cec0a8c0a..83b2ee172 100644
--- a/ext/wasm/api/sqlite3-api-glue.js
+++ b/ext/wasm/api/sqlite3-api-glue.js
@@ -627,8 +627,11 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
wasm.bindingSignatures.wasmInternal = [
["sqlite3__wasm_db_reset", "int", "sqlite3*"],
["sqlite3__wasm_db_vfs", "sqlite3_vfs*", "sqlite3*","string"],
- ["sqlite3__wasm_vfs_create_file", "int",
- "sqlite3_vfs*","string","*", "int"],
+ [/* DO NOT USE. This is deprecated since 2023-08-11 because it can
+ trigger assert() in debug builds when used with file sizes
+ which are not sizes to a multiple of a valid db page size. */
+ "sqlite3__wasm_vfs_create_file", "int", "sqlite3_vfs*","string","*", "int"
+ ],
["sqlite3__wasm_posix_create_file", "int", "string","*", "int"],
["sqlite3__wasm_vfs_unlink", "int", "sqlite3_vfs*","string"],
["sqlite3__wasm_qfmt_token","string:dealloc", "string","int"]