diff options
author | stephan <stephan@noemail.net> | 2022-09-27 13:40:12 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-09-27 13:40:12 +0000 |
commit | 5b9973d89849c318b0500de1fa0019181e7bd3c0 (patch) | |
tree | f6f34298ed88a7fd6a8c6d80f49c4aaae29b73ee /ext/wasm/test-opfs-vfs.js | |
parent | 3d64548491f6e95854b843f978a4ada16eff614c (diff) | |
download | sqlite-5b9973d89849c318b0500de1fa0019181e7bd3c0.tar.gz sqlite-5b9973d89849c318b0500de1fa0019181e7bd3c0.zip |
WASM API renaming. Reworked JS API bootstrap's async post-init into a generic mechanism, no longer OPFS-specific.
FossilOrigin-Name: c42a8cb090cad1108dfd6be574202d744c59e053b505bc4c17252dc6b65d26bf
Diffstat (limited to 'ext/wasm/test-opfs-vfs.js')
-rw-r--r-- | ext/wasm/test-opfs-vfs.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/wasm/test-opfs-vfs.js b/ext/wasm/test-opfs-vfs.js index 04497c1c1..93e9e0eb6 100644 --- a/ext/wasm/test-opfs-vfs.js +++ b/ext/wasm/test-opfs-vfs.js @@ -30,7 +30,7 @@ const tryOpfsVfs = function(sqlite3){ const error = (...args)=>console.error(logPrefix,...args); log("tryOpfsVfs()"); const capi = sqlite3.capi; - const pVfs = capi.sqlite3_vfs_find("opfs") || toss("Unexpectedly missing 'opfs' VFS."); + const pVfs = capi.sqlite3_vfs_find("opfs") || toss("Missing 'opfs' VFS."); const oVfs = capi.sqlite3_vfs.instanceForPointer(pVfs) || toss("Unexpected instanceForPointer() result.");; log("OPFS VFS:",pVfs, oVfs); @@ -78,7 +78,7 @@ const tryOpfsVfs = function(sqlite3){ importScripts('sqlite3.js'); self.sqlite3InitModule() - .then((EmscriptenModule)=>EmscriptenModule.sqlite3.installOpfsVfs()) + .then((EmscriptenModule)=>EmscriptenModule.sqlite3.asyncPostInit()) .then((sqlite3)=>tryOpfsVfs(sqlite3)) .catch((e)=>{ console.error("Error initializing module:",e); |