diff --git a/AccessHandle.md b/AccessHandle.md index 3008555..4403155 100644 --- a/AccessHandle.md +++ b/AccessHandle.md @@ -190,7 +190,7 @@ This proposal only currently considers additions to OPFS, but it would probably be worthwhile to expand the new functionality to arbitrary file handles. While the exact behavior of *AccessHandles* outside of OPFS would need to be defined in detail, it's almost certain that the one described in this proposal should -not be the default. To avoid setting it as such, we propose adding an optional +not be the default. To avoid setting it as such, we propose adding a required *mode* string parameter to *createAccessHandle()* and *createSyncAccessHandle()*. Some possible values *mode* could take are: @@ -206,7 +206,8 @@ not be the default. To avoid setting it as such, we propose adding an optional It's possible that this mode would only be allowed in OPFS. Both the naming and semantics of the *mode* parameter have to be more concretely -defined. +defined. When a default behavior is agreed upon, the parameter should be made +optional. ### Assurances on non-awaited consistency @@ -243,13 +244,13 @@ interface FileSystemFileHandle : FileSystemHandle { Promise getFile(); Promise createWritable(optional FileSystemCreateWritableOptions options = {}); - Promise createAccessHandle(optional FileSystemFileHandleCreateAccessHandleOptions options = {}); + Promise createAccessHandle(FileSystemFileHandleCreateAccessHandleOptions options = {}); [Exposed=DedicatedWorker] - Promise createSyncAccessHandle(optional FileSystemFileHandleCreateAccessHandleOptions options = {}); + Promise createSyncAccessHandle(FileSystemFileHandleCreateAccessHandleOptions options = {}); }; dictionary FileSystemFileHandleCreateAccessHandleOptions { - AccessHandleMode mode; + required AccessHandleMode mode; }; // For more details and possible modes, see "Exposing AccessHandles on all