You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.bs
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -355,7 +355,7 @@ The <dfn method for=FileSystemFileHandle>createWritable(|options|)</dfn> method
355
355
1. Let |entry| be [=this=]'s [=FileSystemHandle/entry=].
356
356
1. Let |lockResult| be the result of [=file entry/lock/take|taking a lock=] with "`shared`" on |entry|.
357
357
1. If |lockResult| is false, [=reject=] |result| with a "{{NoModificationAllowedError}}" {{DOMException}} and abort.
358
-
1. Let |stream| be the result of [=create a new FileSystemWritableFileStream|creating a new FileSystemWritableFileStream=]
358
+
1. Let |stream| be the result of <a>creating a new <code>FileSystemWritableFileStream</code></a>
359
359
for |entry| in [=this=]'s [=relevant realm=].
360
360
1. If |options|.{{FileSystemCreateWritableOptions/keepExistingData}} is true:
361
361
1. Set |stream|.[=[[buffer]]=] to a copy of |entry|'s [=file entry/binary data=].
@@ -399,7 +399,7 @@ The <dfn method for=FileSystemFileHandle>createSyncAccessHandle()</dfn> method s
399
399
[=reject=] |result| with an "{{InvalidStateError}}" {{DOMException}} and abort.
400
400
1. Let |lockResult| be the result of [=file entry/lock/take|taking a lock=] with "`exclusive`" on |entry|.
401
401
1. If |lockResult| is false, [=reject=] |result| with a "{{NoModificationAllowedError}}" {{DOMException}} and abort.
402
-
1. Let |handle| be the result of [=create a new FileSystemSyncAccessHandle|creating a new FileSystemSyncAccessHandle=]
402
+
1. Let |handle| be the result of <a>creating a new <code>FileSystemSyncAccessHandle</code></a>
403
403
for |entry| in [=this=]'s [=relevant realm=].
404
404
1. [=/Resolve=] |result| with |handle|.
405
405
1. Return |result|.
@@ -788,8 +788,9 @@ Similarly, when piping a {{ReadableStream}} into a {{FileSystemWritableFileStrea
788
788
</div>
789
789
790
790
<div algorithm>
791
-
To <dfn>create a new FileSystemWritableFileStream</dfn> given a [=file entry=] |file|
792
-
in a [=/Realm=] |realm|, run these steps:
791
+
To
792
+
<dfn local-lt="creating a new FileSystemWritableFileStream">create a new <code>FileSystemWritableFileStream</code></dfn>
793
+
given a [=file entry=] |file| in a [=/Realm=] |realm|:
793
794
794
795
1. Let |stream| be a [=new=]{{FileSystemWritableFileStream}} in |realm|.
795
796
1. Set |stream|.[=FileSystemWritableFileStream/[[file]]=] to |file|.
@@ -1051,8 +1052,9 @@ contexts where asynchronous operations come with high overhead, e.g., WebAssembl
1051
1052
A {{FileSystemSyncAccessHandle}} has a <dfn for="FileSystemSyncAccessHandle">file position cursor</dfn> initialized at byte offset 0 from the top of the file.
1052
1053
1053
1054
<div algorithm>
1054
-
To <dfn>create a new FileSystemSyncAccessHandle</dfn> given a [=file entry=] |file|
1055
-
in a [=/Realm=] |realm|, run these steps:
1055
+
To
1056
+
<dfn local-lt="creating a new FileSystemSyncAccessHandle">create a new <code>FileSystemSyncAccessHandle</code></dfn>
1057
+
given a [=file entry=] |file| in a [=/Realm=] |realm|:
1056
1058
1057
1059
1. Let |handle| be a [=new=]{{FileSystemSyncAccessHandle}} in |realm|.
1058
1060
1. Set |handle|.[=FileSystemSyncAccessHandle/[[file]]=] to |file|.
0 commit comments