Skip to content

Commit

Permalink
Editorial: Clarify verbiage of abstract closure capturing
Browse files Browse the repository at this point in the history
  • Loading branch information
syg committed Mar 9, 2020
1 parent 72d6687 commit 941a3d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -4396,7 +4396,7 @@ <h1>The Lexical Environment and Environment Record Specification Types</h1>
<emu-clause id="sec-abstract-closure">
<h1>The Abstract Closure Specification Type</h1>
<p>The <dfn>abstract closure</dfn> specification type is used to refer to algorithm steps together with a collection of values. Abstract closures are meta-values and are invoked using function application style such as _closure_(_arg1_, _arg2_). Like abstract operations, invocations perform the algorithm steps described by the abstract closure.</p>
<p>In algorithm steps that create an abstract closure, values are captured with the verb "capture" followed by a list of aliases. The value associated with each alias at creation time is captured. In steps that specify the algorithm to be performed when an abstract closure is called, each captured value is referred to by the alias that was used to capture the value.</p>
<p>In algorithm steps that create an abstract closure, values are captured with the verb "capture" followed by a list of aliases. When an abstract closure is created, it captures the value that is associated with each alias at that time. In steps that specify the algorithm to be performed when an abstract closure is called, each captured value is referred to by the alias that was used to capture the value.</p>
<p>If an abstract closure returns a Completion Record, that Completion Record's [[Type]] must be either ~normal~ or ~throw~.</p>
<p>Abstract closures are created inline as part of other algorithms, shown in the following example.</p>
<emu-alg>
Expand Down

0 comments on commit 941a3d5

Please sign in to comment.