diff --git a/index.bs b/index.bs index a50a0d78..bddbe966 100644 --- a/index.bs +++ b/index.bs @@ -4825,11 +4825,13 @@ Note: the |function declaration| is parenthesized and evaluated. 1. [=Clean up after running script=] with |environment settings|. -1. Return |function body evaluation status|. +1. Return (|function script|, |function body evaluation status|). +
arguments
field
+1. Let |command arguments| be the value of the arguments
field
of |command parameters|.
1. Let |deserialized arguments| be an empty [=/list=].
@@ -4865,8 +4867,13 @@ The [=remote end steps=] with |session| and |command parameters| are:
1. Let |result ownership| be the value of the resultOwnership
field of
|command parameters|, if present, or none
otherwise.
-1. Let |function body evaluation status| be the result of [=evaluate function body=]
- (|function declaration|, |environment settings|, |base URL|, and |options|).
+1. Let |base URL| be the [=API base URL=] of |environment settings|.
+
+1. Let |options| be the [=default classic script fetch options=].
+
+1. Let (script, |function body evaluation status|) be the
+ result of [=evaluate function body=] with |function declaration|,
+ |environment settings|, |base URL|, and |options|.
1. If |function body evaluation status|.\[[Type]] is throw
:
@@ -4908,8 +4915,8 @@ The [=remote end steps=] with |session| and |command parameters| are:
1. Assert: |evaluation status|.\[[Type]] is normal
.
1. Let |result| be the result of [=serialize as a remote value=] with
- |evaluation status|.\[[Value]], 1
as |max depth|, |result ownership|,
- a new [=/map=] as serialization internal map, |realm| and |session|.
+ |evaluation status|.\[[Value]], 1
as max depth, |result ownership|,
+ a new [=/map=] as serialization internal map, |realm|, and |session|.
1. Return a new [=/map=] matching the script.EvaluateResultSuccess
production, with the realm
field set to |realm id|,
@@ -4957,7 +4964,9 @@ TODO: Add timeout argument. It's not totally clear how this ought to work; in
Chrome it seems like the timeout doesn't apply to the promise resolve step, but
that likely isn't what clients want.
-The [=remote end steps=] with |session| and |command parameters| are:
+target
field of |command parameters|.
@@ -5006,8 +5015,8 @@ The [=remote end steps=] with |session| and |command parameters| are:
1. Assert: |evaluation status|.\[[Type]] is normal
.
1. Let |result| be the result of [=serialize as a remote value=] with
- |evaluation status|.\[[Value]], 1
as |max depth|, |result ownership|,
- a new [=/map=] as serialization internal map, |realm| and |session|.
+ |evaluation status|.\[[Value]], 1
as max depth, |result ownership|,
+ a new [=/map=] as serialization internal map, |realm|, and |session|.
1. Return a new [=/map=] matching the script.EvaluateResultSuccess
production, with the with the realm
field set to |realm id|, and