From 5c5bdff017dcb67d756c412760134f4ebc6dee01 Mon Sep 17 00:00:00 2001 From: Francis McCabe Date: Thu, 12 Sep 2024 13:37:56 -0700 Subject: [PATCH] Update index.bs Some small fixes --- document/js-api/index.bs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/document/js-api/index.bs b/document/js-api/index.bs index 757e79a14..e5998bbf9 100644 --- a/document/js-api/index.bs +++ b/document/js-api/index.bs @@ -1071,7 +1071,7 @@ Note: Exported Functions do not have a \[[Construct]] method and thus it is not 1. [=Clean up after running script=] with |relevant settings|. 1. Assert: |result|.\[[Type]] is throw or normal. 1. If |result|.\[[Type]] is throw, then: - 1. Let |type|, |payload| and |opaquedata| be the result of [=coerce a JavaScript exception|coercing the JavaScript exception=] |result|.\[[Value]]. + 1. Let |type|, |payload| and |opaqueData| be the result of [=coerce a JavaScript exception|coercing the JavaScript exception=] |result|.\[[Value]]. 1. [=WebAssembly/Throw=] with |type|, |payload| and |opaqueData|. 1. Otherwise, return |result|.\[[Value]]. 1. Let |store| be the [=surrounding agent=]'s [=associated store=]. @@ -1246,7 +1246,7 @@ To create a suspending function from a JavaScript function |func|, wi 1. [=Clean up after running script=] with |relevant settings|. 1. Assert: |ret|.\[[Type]] is throw or normal. 1. If |ret|.\[[Type]] is throw, then: - 1. Let |type|, |payload| and |opaquedata| be the result of [=coerce a JavaScript exception|coercing the JavaScript exception=] |ret|.\[[Value]]. + 1. Let |type|, |payload| and |opaqueData| be the result of [=coerce a JavaScript exception|coercing the JavaScript exception=] |ret|.\[[Value]]. 1. [=WebAssembly/Throw=] with |type|, |payload| and |opaqueData|. 1. Otherwise, if [=list/size=] of |ret| is 1 and [$IsPromise$](|ret|.\[[Value]][0]): 1. Let |promise| be |ret|.\[[Value]][0]. @@ -1272,7 +1272,7 @@ To create a suspending function from a JavaScript function |func|, wi 1. Return |funcaddr|. -
+
An [=execution context=] can be marked Paused to signal that the computation associated with the [=execution context=] has been paused.
@@ -1303,6 +1303,7 @@ The Reject abstract operation takes a continuation object |k|, an exc 1. If |ec| is not marked as [=Paused|paused=] then trap. 1. Mark |ec| as not [=Paused|paused=]. 1. Push |ec| on to the [=Execution Context Stack=], making |ec| the current execution context. + 1. Let |type|, |payload| and |opaqueData| be the result of performing [=coerce a JavaScript exception=} on |e| 1. Resume the operations defined by |k|, performing [=WebAssembly/Throw=] with |type|, |payload| and |opaqueData|.