Skip to content

Commit eb2a884

Browse files
committed
queue a task to enqueue steps
1 parent 0b270ac commit eb2a884

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

index.bs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,18 +107,18 @@ To <dfn for="file entry/lock">take</dfn> a [=file entry/lock=] with a |value| of
107107
1. If |value| is "`exclusive`":
108108
1. If |lock| is "`open`":
109109
1. Set lock to "`taken-exclusive`".
110-
1. Return a value of "`success`".
110+
1. Return "`success`".
111111
1. If |value| is "`shared`":
112112
1. If |lock| is "`open`":
113113
1. Set |lock| to "`taken-shared`".
114114
1. Set |count| to 1.
115-
1. Return a value of "`success`".
115+
1. Return "`success`".
116116
1. Otherwise, if |lock| is "`taken-shared`":
117117
1. Increase |count| by 1.
118-
1. Return a value of "`success`".
119-
1. Return a value of "`failure`".
118+
1. Return "`success`".
119+
1. Return "`failure`".
120120

121-
Note: These steps must be run on the [=file system queue=].
121+
Note: These steps have to be run on the [=file system queue=].
122122

123123
</div>
124124

@@ -133,7 +133,7 @@ To <dfn for="file entry/lock">release</dfn> a [=file entry/lock=] on a given
133133
1. If |count| is 0, set |lock| to "`open`".
134134
1. Otherwise, set |lock| to "`open`".
135135

136-
Note: These steps must be run on the [=file system queue=].
136+
Note: These steps have to be run on the [=file system queue=].
137137

138138
</div>
139139

@@ -504,7 +504,8 @@ The <dfn method for=FileSystemFileHandle>createWritable(|options|)</dfn> method
504504
1. Let |result| be [=a new promise=].
505505
1. Let |locator| be [=this=]'s [=FileSystemHandle/locator=].
506506
1. Let |realm| be [=this=]'s [=relevant Realm=].
507-
1. [=Enqueue the following steps=] to the [=file system queue=]:
507+
1. [=Queue a storage task=] with [=this=]'s [=relevant global object=] to
508+
[=enqueue the following steps=] to the [=file system queue=]:
508509
1. Let |entry| be the result of [=locating an entry=] given |locator|.
509510
1. Let |access| be the result of running |entry|'s
510511
[=file system entry/request access=] given "`readwrite`".

0 commit comments

Comments
 (0)