Skip to content

Commit 50d5abe

Browse files
Make awaitPromise param obligatory. (#239)
Make `awaitPromise` obligatory to avoid confusion by default `true` value.
1 parent 0825f8b commit 50d5abe

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

index.bs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,16 +1578,16 @@ DateRemoteValue = {
15781578

15791579
MapRemoteValue = {
15801580
type: "map",
1581+
value: MappingRemoteValue,
15811582
?handle: Handle,
15821583
?internalId: InternalId,
1583-
value: MappingRemoteValue,
15841584
}
15851585

15861586
SetRemoteValue = {
15871587
type: "set",
1588+
value: ListRemoteValue
15881589
?handle: Handle,
15891590
?internalId: InternalId,
1590-
value: ListRemoteValue
15911591
}
15921592

15931593
WeakMapRemoteValue = {
@@ -1654,9 +1654,9 @@ NodeRemoteValue = {
16541654
NodeProperties = {
16551655
nodeType: uint,
16561656
nodeValue: text,
1657+
childNodeCount: uint,
16571658
?localName: text,
16581659
?namespaceURI: text,
1659-
childNodeCount: uint,
16601660
?children: [*NodeRemoteValue],
16611661
?attributes: {*text => text},
16621662
?shadowRoot: NodeRemoteValue / null,
@@ -2540,9 +2540,9 @@ BrowsingContextInfoList = [* BrowsingContextInfo]
25402540

25412541
BrowsingContextInfo = {
25422542
context: BrowsingContext,
2543-
?parent: BrowsingContext / null,
25442543
url: text,
25452544
children: BrowsingContextInfoList / null
2545+
?parent: BrowsingContext / null,
25462546
}
25472547

25482548
</pre>
@@ -4184,10 +4184,10 @@ Note: In case of an arrow function in <code>functionDeclaration</code>, the
41844184

41854185
ScriptCallFunctionParameters = {
41864186
functionDeclaration: text;
4187+
awaitPromise: bool;
4188+
target: Target;
41874189
?arguments: [ArgumentValue];
41884190
?this: ArgumentValue;
4189-
?awaitPromise: bool;
4190-
target: Target;
41914191
?resultOwnership: OwnershipModel;
41924192
}
41934193

@@ -4278,7 +4278,7 @@ The [=remote end steps=] with |command parameters| are:
42784278
<code>functionDeclaration</code> field of |command parameters|.
42794279

42804280
1. Let |await promise| be the value of the <code>awaitPromise</code> field of
4281-
|command parameters|, if present, or <code>true</code> otherwise.
4281+
|command parameters|.
42824282

42834283
1. Let |result ownership| be the value of the <code>resultOwnership</code> field of
42844284
|command parameters|, if present, or <code>none</code> otherwise.
@@ -4336,8 +4336,8 @@ place of a realm, in which case the realm used is the realm of the browsing
43364336
context's active document.
43374337

43384338
The method returns the value of executing the provided script, unless it returns
4339-
a promise and <code>awaitPromise</code> is true (which is the default), in which
4340-
case the resolved value of the promise is returned.
4339+
a promise and <code>awaitPromise</code> is true, in which case the resolved value of
4340+
the promise is returned.
43414341

43424342
<dl>
43434343
<dt>Command Type</dt>
@@ -4351,7 +4351,7 @@ case the resolved value of the promise is returned.
43514351
ScriptEvaluateParameters = {
43524352
expression: text;
43534353
target: Target;
4354-
?awaitPromise: bool;
4354+
awaitPromise: bool;
43554355
?resultOwnership: OwnershipModel;
43564356
}
43574357
</pre>
@@ -4382,7 +4382,7 @@ The [=remote end steps=] with |command parameters| are:
43824382
parameters|.
43834383

43844384
1. Let |await promise| be the value of the <code>awaitPromise</code> field of
4385-
|command parameters|, if present, or <code>true</code> otherwise.
4385+
|command parameters|.
43864386

43874387
1. Let |result ownership| be the value of the <code>resultOwnership</code> field of
43884388
|command parameters|, if present, or <code>none</code> otherwise.

0 commit comments

Comments
 (0)