diff options
author | drh <> | 2022-11-28 16:11:10 +0000 |
---|---|---|
committer | drh <> | 2022-11-28 16:11:10 +0000 |
commit | 8ffa77f3a92aeaa8048156e84fbfae76ea875317 (patch) | |
tree | 7852be72405313ab9179efb40e5ffeabf904315d /ext/wasm/api/sqlite3-opfs-async-proxy.js | |
parent | 84606c973757cbb5a276b54c5bfad67943288722 (diff) | |
parent | e862b5fe1d2bda6ef7d557471c150c82ec453455 (diff) | |
download | sqlite-8ffa77f3a92aeaa8048156e84fbfae76ea875317.tar.gz sqlite-8ffa77f3a92aeaa8048156e84fbfae76ea875317.zip |
Merge trunk changes into covering-index-expr branch.
FossilOrigin-Name: 89d775ada39aed4dc532374ace02156d07dc06e8ae54a194608af0c5a582d20f
Diffstat (limited to 'ext/wasm/api/sqlite3-opfs-async-proxy.js')
-rw-r--r-- | ext/wasm/api/sqlite3-opfs-async-proxy.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/wasm/api/sqlite3-opfs-async-proxy.js b/ext/wasm/api/sqlite3-opfs-async-proxy.js index 8a3db9c64..8e60969bc 100644 --- a/ext/wasm/api/sqlite3-opfs-async-proxy.js +++ b/ext/wasm/api/sqlite3-opfs-async-proxy.js @@ -29,6 +29,22 @@ This file represents an implementation detail of a larger piece of code, and not a public interface. Its details may change at any time and are not intended to be used by any client-level code. + + 2022-11-27: Chrome v108 changes some async methods to synchronous, as + documented at: + + https://developer.chrome.com/blog/sync-methods-for-accesshandles/ + + We cannot change to the sync forms at this point without breaking + clients who use Chrome v104-ish or higher. truncate(), getSize(), + flush(), and close() are now (as of v108) synchronous. Calling them + with an "await", as we have to for the async forms, is still legal + with the sync forms but is superfluous. Calling the async forms with + theFunc().then(...) is not compatible with the change to + synchronous, but we do do not use those APIs that way. i.e. we don't + _need_ to change anything for this, but at some point (after Chrome + versions (approximately) 104-107 are extinct) should change our + usage of those methods to remove the "await". */ "use strict"; const toss = function(...args){throw new Error(args.join(' '))}; |