diff options
author | stephan <stephan@noemail.net> | 2022-11-21 04:12:38 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-11-21 04:12:38 +0000 |
commit | 36d5554c9abaa3080e85e3b7b517605c6106587d (patch) | |
tree | a4fc23360bf7aaa42ef7f6dcd669624a2bece552 /ext/wasm/api/sqlite3-opfs-async-proxy.js | |
parent | 27c4cd183d91d09e34e310d6349cda2b33c255ba (diff) | |
download | sqlite-36d5554c9abaa3080e85e3b7b517605c6106587d.tar.gz sqlite-36d5554c9abaa3080e85e3b7b517605c6106587d.zip |
Resolve missing SQLITE_LOCKED result code which triggered a new (since last checkin) exception in the OPFS VFS. Improve output of the OPFS contention tester app.
FossilOrigin-Name: 2debbbca33bd4170a1dc4dbb5eb3e68523e51d289b06c551e5560ac4e32e433b
Diffstat (limited to 'ext/wasm/api/sqlite3-opfs-async-proxy.js')
-rw-r--r-- | ext/wasm/api/sqlite3-opfs-async-proxy.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/wasm/api/sqlite3-opfs-async-proxy.js b/ext/wasm/api/sqlite3-opfs-async-proxy.js index 3701e8c30..58cf8ca3c 100644 --- a/ext/wasm/api/sqlite3-opfs-async-proxy.js +++ b/ext/wasm/api/sqlite3-opfs-async-proxy.js @@ -477,8 +477,8 @@ const vfsAsyncImpls = { wTimeStart('xFileSize'); try{ affirmLocked('xFileSize',fh); - rc = await (await getSyncHandle(fh)).getSize(); - state.s11n.serialize(Number(rc)); + const sz = await (await getSyncHandle(fh)).getSize(); + state.s11n.serialize(Number(sz)); rc = 0; }catch(e){ state.s11n.storeException(2,e); |