Skip to content

Commit fea0b84

Browse files
jmdyckljharb
authored andcommitted
Editorial: set [[SourceText]] for async arrow functions (#1548)
These lines didn't appear in #697. `@ljharb` says that was likely an oversight: #1458 (comment)
1 parent c682d06 commit fea0b84

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20533,6 +20533,7 @@ <h1>Runtime Semantics: Evaluation</h1>
2053320533
1. Let _scope_ be the LexicalEnvironment of the running execution context.
2053420534
1. Let _parameters_ be |AsyncArrowBindingIdentifier|.
2053520535
1. Let _closure_ be ! AsyncFunctionCreate(~Arrow~, _parameters_, |AsyncConciseBody|, _scope_, _strict_).
20536+
1. Set _closure_.[[SourceText]] to the source text matched by |AsyncArrowFunction|.
2053620537
1. Return _closure_.
2053720538
</emu-alg>
2053820539
<emu-grammar>
@@ -20544,6 +20545,7 @@ <h1>Runtime Semantics: Evaluation</h1>
2054420545
1. Let _head_ be CoveredAsyncArrowHead of |CoverCallExpressionAndAsyncArrowHead|.
2054520546
1. Let _parameters_ be the |ArrowFormalParameters| of _head_.
2054620547
1. Let _closure_ be ! AsyncFunctionCreate(~Arrow~, _parameters_, |AsyncConciseBody|, _scope_, _strict_).
20548+
1. Set _closure_.[[SourceText]] to the source text matched by |AsyncArrowFunction|.
2054720549
1. Return _closure_.
2054820550
</emu-alg>
2054920551
</emu-clause>

0 commit comments

Comments
 (0)