aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-api-glue.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-09-30 10:55:28 +0000
committerstephan <stephan@noemail.net>2022-09-30 10:55:28 +0000
commit53d4e01d063ebee14ff06706b58faba0d07df136 (patch)
treed5dde8d27559fc29935068ffc5480d0020ecd6dc /ext/wasm/api/sqlite3-api-glue.js
parentf71c954cbc07fa0fc8a59e2a8a5a2a32b8e5d95c (diff)
downloadsqlite-53d4e01d063ebee14ff06706b58faba0d07df136.tar.gz
sqlite-53d4e01d063ebee14ff06706b58faba0d07df136.zip
wasm: expose sqlite3_de/serialize(), sqlite3_malloc/free() and friends, noting that the former explicitly lies on use of the latter for memory management so is not generically safe for use in wasm.
FossilOrigin-Name: fbc0edb5d31aa0dea92460e853f15f08c642451a7878994116b530cf172325cc
Diffstat (limited to 'ext/wasm/api/sqlite3-api-glue.js')
-rw-r--r--ext/wasm/api/sqlite3-api-glue.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/wasm/api/sqlite3-api-glue.js b/ext/wasm/api/sqlite3-api-glue.js
index 258c08250..004262e25 100644
--- a/ext/wasm/api/sqlite3-api-glue.js
+++ b/ext/wasm/api/sqlite3-api-glue.js
@@ -177,7 +177,8 @@ self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
for(const t of ['access', 'blobFinalizers', 'dataTypes',
'encodings', 'fcntl', 'flock', 'ioCap',
'openFlags', 'prepareFlags', 'resultCodes',
- 'syncFlags', 'udfFlags', 'version'
+ 'serialize', 'syncFlags', 'udfFlags',
+ 'version'
]){
for(const e of Object.entries(wasm.ctype[t])){
// ^^^ [k,v] there triggers a buggy code transormation via one