Skip to content

Commit

Permalink
Editorial: set [[SourceText]] for async arrow functions (tc39#1548)
Browse files Browse the repository at this point in the history
These lines didn't appear in tc39#697.
`@ljharb` says that was likely an oversight:
tc39#1458 (comment)
  • Loading branch information
jmdyck authored and ljharb committed Jun 2, 2019
1 parent c682d06 commit fea0b84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -20533,6 +20533,7 @@ <h1>Runtime Semantics: Evaluation</h1>
1. Let _scope_ be the LexicalEnvironment of the running execution context.
1. Let _parameters_ be |AsyncArrowBindingIdentifier|.
1. Let _closure_ be ! AsyncFunctionCreate(~Arrow~, _parameters_, |AsyncConciseBody|, _scope_, _strict_).
1. Set _closure_.[[SourceText]] to the source text matched by |AsyncArrowFunction|.
1. Return _closure_.
</emu-alg>
<emu-grammar>
Expand All @@ -20544,6 +20545,7 @@ <h1>Runtime Semantics: Evaluation</h1>
1. Let _head_ be CoveredAsyncArrowHead of |CoverCallExpressionAndAsyncArrowHead|.
1. Let _parameters_ be the |ArrowFormalParameters| of _head_.
1. Let _closure_ be ! AsyncFunctionCreate(~Arrow~, _parameters_, |AsyncConciseBody|, _scope_, _strict_).
1. Set _closure_.[[SourceText]] to the source text matched by |AsyncArrowFunction|.
1. Return _closure_.
</emu-alg>
</emu-clause>
Expand Down

0 comments on commit fea0b84

Please sign in to comment.