diff --git a/lang/spec.html b/lang/spec.html index 2d921b23..be2ebaf1 100644 --- a/lang/spec.html +++ b/lang/spec.html @@ -7678,7 +7678,7 @@
worker
worker-name return-type-descriptor statement-block
+ [annots] [transactional-qual] worker
worker-name return-type-descriptor statement-block [on-fail-clause]
worker-name := identifier
@@ -9746,6 +9746,13 @@
+An on-fail-clause
attached to a named-worker-decl
is a
+shorthand for a named-worker-decl
with a statement block that is a
+do-stmt
with that on-fail-clause
: worker
+X { Y } on fail Z
is equivalent to
+worker X { do { Y } on fail Z }
.
+
If there is a typed-binding-pattern
, then it is matched to the
associated error value, binding the variables occurring within the
typed-binding-pattern
; the statement-block
is executed
@@ -11684,6 +11691,7 @@
retry
or transaction
statement may now have an on fail
clause.on fail
clause.