@@ -14188,12 +14188,12 @@ the special value “missing”, which represents a missing optional argument.
14188
14188
|callResult|.\[[Value]] to an IDL value of the same type as the operation's
14189
14189
return type.
14190
14190
1. <i id="call-user-object-operation-return">Return:</i> at this
14191
- point |completion| will be set to an ECMAScript completion value.
14191
+ point |completion| will be set to an IDL value or an [=abrupt completion=] .
14192
14192
1. [=Clean up after running a callback=] with |stored settings|.
14193
14193
1. [=Clean up after running script=] with |relevant settings|.
14194
- 1. If |completion| is a normal completion , return |completion|.
14194
+ 1. If |completion| is an IDL value , return |completion|.
14195
14195
1. If |completion| is an [=abrupt completion=] and the operation has a [=return type=]
14196
- that is <em>not</em> a [=promise type=], return |completion|.
14196
+ that is <em>not</em> a [=promise type=], throw |completion|.\[[Value]] .
14197
14197
1. Let |rejectedPromise| be [=!=] <a abstract-op>Call</a>({{%Promise.reject%}},
14198
14198
{{%Promise%}}, «|completion|.\[[Value]]»).
14199
14199
1. Return the result of [=converted to an IDL value|converting=]
@@ -14276,12 +14276,12 @@ described in the previous section).
14276
14276
|callResult|.\[[Value]] to an IDL value of the same type as the operation's
14277
14277
return type.
14278
14278
1. <i id="invoke-return">Return:</i> at this
14279
- point |completion| will be set to an ECMAScript completion value.
14279
+ point |completion| will be set to an IDL value or an [=abrupt completion=] .
14280
14280
1. [=Clean up after running a callback=] with |stored settings|.
14281
14281
1. [=Clean up after running script=] with |relevant settings|.
14282
- 1. If |completion| is a normal completion , return |completion|.
14282
+ 1. If |completion| is an IDL value , return |completion|.
14283
14283
1. If |completion| is an [=abrupt completion=] and the callback function has a
14284
- [=return type=] that is <em>not</em> a [=promise type=], return |completion|.
14284
+ [=return type=] that is <em>not</em> a [=promise type=], throw |completion|.\[[Value]] .
14285
14285
1. Let |rejectedPromise| be [=!=] <a abstract-op>Call</a>({{%Promise.reject%}},
14286
14286
{{%Promise%}}, «|completion|.\[[Value]]»).
14287
14287
1. Return the result of [=converted to an IDL value|converting=]
@@ -14318,9 +14318,10 @@ a return type that is a [=promise type=].
14318
14318
|callResult|.\[[Value]] to an IDL value of the same type as the operation's
14319
14319
return type.
14320
14320
1. <i id="construct-return">Return:</i> at this
14321
- point |completion| will be set to an ECMAScript completion value.
14321
+ point |completion| will be set to an IDL value or an [=abrupt completion=] .
14322
14322
1. [=Clean up after running a callback=] with |stored settings|.
14323
14323
1. [=Clean up after running script=] with |relevant settings|.
14324
+ 1. If |completion| is an [=abrupt completion=], throw |completion|.\[[Value]].
14324
14325
1. Return |completion|.
14325
14326
</div>
14326
14327
0 commit comments