Skip to content

Commit 0cf3fcf

Browse files
committed
Remove options parameter
For more context see whatwg/fs#19.
1 parent 008de22 commit 0cf3fcf

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

index.bs

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -451,18 +451,12 @@ dictionary FileSystemCreateWritableOptions {
451451
boolean keepExistingData = false;
452452
};
453453

454-
enum AccessHandleMode { "in-place" };
455-
456-
dictionary FileSystemFileHandleCreateAccessHandleOptions {
457-
required AccessHandleMode mode;
458-
};
459-
460454
[Exposed=(Window,Worker), SecureContext, Serializable]
461455
interface FileSystemFileHandle : FileSystemHandle {
462456
Promise<File> getFile();
463457
Promise<FileSystemWritableFileStream> createWritable(optional FileSystemCreateWritableOptions options = {});
464458
[Exposed=DedicatedWorker]
465-
Promise<FileSystemSyncAccessHandle> createSyncAccessHandle(FileSystemFileHandleCreateAccessHandleOptions options);
459+
Promise<FileSystemSyncAccessHandle> createSyncAccessHandle();
466460
};
467461
</xmp>
468462

@@ -565,7 +559,7 @@ The <dfn method for=FileSystemFileHandle>createWritable(|options|)</dfn> method,
565559
### The {{FileSystemFileHandle/createSyncAccessHandle()}} method ### {#api-filesystemfilehandle-createsyncaccesshandle}
566560

567561
<div class="note domintro">
568-
: |handle| = await |fileHandle| . {{FileSystemFileHandle/createSyncAccessHandle()|createSyncAccessHandle}}({ {{FileSystemFileHandleCreateAccessHandleOptions/mode}}: "in-place" })
562+
: |handle| = await |fileHandle| . {{FileSystemFileHandle/createSyncAccessHandle()|createSyncAccessHandle}}()
569563
:: Returns a {{FileSystemSyncAccessHandle}} that can be used to read/write from/to the file.
570564
Changes made through |handle| might be immediately reflected in the file represented by |fileHandle|.
571565
To ensure the changes are reflected in this file, the handle must be flushed or closed.
@@ -580,14 +574,11 @@ The <dfn method for=FileSystemFileHandle>createWritable(|options|)</dfn> method,
580574
contexts where asynchronous operations come with high overhead, i.e., WebAssembly.
581575

582576
For the time being, this method will only succeed when the |fileHandle| belongs to the
583-
[=origin private file system=]. Also temporarily, the {{FileSystemFileHandleCreateAccessHandleOptions/mode}} parameter
584-
must be set to "in-place". This prevents us from setting a default behavior and allows us to bring access handles to
585-
other filesytems in the future.
586-
577+
[=origin private file system=].
587578
</div>
588579

589580
<div algorithm>
590-
The <dfn method for=FileSystemFileHandle>createSyncAccessHandle(|options|)</dfn> method, when invoked, must run these steps:
581+
The <dfn method for=FileSystemFileHandle>createSyncAccessHandle()</dfn> method, when invoked, must run these steps:
591582

592583
1. Let |result| be [=a new promise=].
593584
1. Run the following steps [=in parallel=]:

0 commit comments

Comments
 (0)