diff options
author | stephan <stephan@noemail.net> | 2024-03-05 06:31:37 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2024-03-05 06:31:37 +0000 |
commit | 2c3973fdff6f3ffa6f8aac63a2c5d3fa02b66a24 (patch) | |
tree | 8573e90b2c893df078e243608219739cd39a2129 /ext/wasm/fiddle/fiddle-worker.js | |
parent | 18281494a27095687cb136783878fbbde8286f51 (diff) | |
download | sqlite-2c3973fdff6f3ffa6f8aac63a2c5d3fa02b66a24.tar.gz sqlite-2c3973fdff6f3ffa6f8aac63a2c5d3fa02b66a24.zip |
/fiddle: before resetting a db, roll back any transactions (resolves problem reported in [forum:0b41a25d65|forum post 0b41a25d65]) and remove an obsolete/broken reference to a long-gone API which could cause initialization to fail prematurely.
FossilOrigin-Name: ee164ca73cf4151b1a1bf351729afa9b0ec95bd5004a5d5bfce3ed46268bfbf3
Diffstat (limited to 'ext/wasm/fiddle/fiddle-worker.js')
-rw-r--r-- | ext/wasm/fiddle/fiddle-worker.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/wasm/fiddle/fiddle-worker.js b/ext/wasm/fiddle/fiddle-worker.js index cf0aa1ca2..27d915eb2 100644 --- a/ext/wasm/fiddle/fiddle-worker.js +++ b/ext/wasm/fiddle/fiddle-worker.js @@ -166,11 +166,10 @@ stdout("SQLite version", capi.sqlite3_libversion(), capi.sqlite3_sourceid().substr(0,19)); stdout('Welcome to the "fiddle" shell.'); - if(sqlite3.opfs){ + if(capi.sqlite3_vfs_find("opfs")){ stdout("\nOPFS is available. To open a persistent db, use:\n\n", " .open file:name?vfs=opfs\n\nbut note that some", "features (e.g. upload) do not yet work with OPFS."); - sqlite3.opfs.registerVfs(); } stdout('\nEnter ".help" for usage hints.'); this.exec([ // initialization commands... @@ -317,7 +316,7 @@ }; console.warn("Unknown fiddle-worker message type:",ev); }; - + /** emscripten module for use with build mode -sMODULARIZE. */ |