diff options
author | stephan <stephan@noemail.net> | 2022-10-29 07:54:10 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-10-29 07:54:10 +0000 |
commit | 8948fbee29f8860ff6d116eaa66626ff11ab8064 (patch) | |
tree | 8b2a9b8faa122a7134e2b28485d9126f964763df /ext/wasm/api/sqlite3-api-opfs.js | |
parent | 053bb22f35c5dd153a62158ed2cc6376b5979212 (diff) | |
download | sqlite-8948fbee29f8860ff6d116eaa66626ff11ab8064.tar.gz sqlite-8948fbee29f8860ff6d116eaa66626ff11ab8064.zip |
Move the sqlite3.capi.wasm namespace to sqlite3.wasm. This causes a tiny bit of naming confusion with the sqlite3.wasm *file*, but seems to make more sense than having it as a sub-namespace of capi.
FossilOrigin-Name: 3f16eb18d6186ca972fca952ccac18649e7a905213f589e53c0c9333e695448d
Diffstat (limited to 'ext/wasm/api/sqlite3-api-opfs.js')
-rw-r--r-- | ext/wasm/api/sqlite3-api-opfs.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/wasm/api/sqlite3-api-opfs.js b/ext/wasm/api/sqlite3-api-opfs.js index 41efe0ab6..a4516513c 100644 --- a/ext/wasm/api/sqlite3-api-opfs.js +++ b/ext/wasm/api/sqlite3-api-opfs.js @@ -118,7 +118,7 @@ const installOpfsVfs = function callee(options){ const error = (...args)=>logImpl(0, ...args); const toss = function(...args){throw new Error(args.join(' '))}; const capi = sqlite3.capi; - const wasm = capi.wasm; + const wasm = sqlite3.wasm; const sqlite3_vfs = capi.sqlite3_vfs; const sqlite3_file = capi.sqlite3_file; const sqlite3_io_methods = capi.sqlite3_io_methods; @@ -924,7 +924,7 @@ const installOpfsVfs = function callee(options){ cannot add an after-initialize callback mechanism. */ opfsUtil.registerVfs = (asDefault=false)=>{ - return capi.wasm.exports.sqlite3_vfs_register( + return wasm.exports.sqlite3_vfs_register( opfsVfs.pointer, asDefault ? 1 : 0 ); }; |