Skip to content

Commit

Permalink
Editorial: set [[SourceText]] for async arrow functions
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 committed May 25, 2019
1 parent a5375bd commit ea88962
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 @@ -20512,6 +20512,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 @@ -20523,6 +20524,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 ea88962

Please sign in to comment.