Hello blink-dev, We’d like to do a small web-facing change <https://chromium-review.googlesource.com/c/chromium/src/+/3586806/2> to the options parameter of *FileSystemSyncAccessHandle* read/write methods, making it optional. The change simplifies the surface, is backwards compatible, and is already part of the draft spec <https://github.com/whatwg/fs/pull/21>/has been positively received by other browsers (see meeting minutes <https://github.com/whatwg/fs/issues/24>, 6th point).
Example code showing the change: ``` const handle = await fileHandle.createSyncAccessHandle(); const writeBuffer = new Uint8Array([0, 1, 2, 3]); // Previously: // Writing at the start of a file const writtenBytes = handle.write(writeBuffer, {at: 0}); // Writing in the middle of a file const writtenBytes = handle.write(writeBuffer, {at: 15}); // After the change: // Writing at the start of a file const writtenBytes = handle.write(writeBuffer); // Writing in the middle of a file const writtenBytes = handle.write(writeBuffer, {at: 15}); ``` Thanks, Emanuel -- You received this message because you are subscribed to the Google Groups "blink-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscr...@chromium.org. To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAHExSG%2B9T3D2XORNXYVgafDLN5QnnTvn_-6KZ4%3Do0_MmJgDBjA%40mail.gmail.com.