Skip to content

Commit

Permalink
Editorial: Fix SubstitutionTemplate ArgumentListEvaluation (tc39#1402)
Browse files Browse the repository at this point in the history
Previously it was referencing an undeclared |TemplateLiteral|.

Co-authored-by: Timothy Gu <[email protected]>
Co-authored-by: Kevin Gibbons <[email protected]>
  • Loading branch information
2 people authored and ljharb committed Aug 10, 2020
1 parent ae77188 commit c8044c2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -13420,15 +13420,20 @@ <h1>Runtime Semantics: ArgumentListEvaluation</h1>
1. Let _siteObj_ be GetTemplateObject(_templateLiteral_).
1. Return a List containing the one element which is _siteObj_.
</emu-alg>
<emu-grammar>SubstitutionTemplate : TemplateHead Expression TemplateSpans</emu-grammar>
<emu-grammar>TemplateLiteral : SubstitutionTemplate</emu-grammar>
<emu-alg>
1. Let _templateLiteral_ be this |TemplateLiteral|.
1. Let _siteObj_ be GetTemplateObject(_templateLiteral_).
1. Let _remaining_ be ? ArgumentListEvaluation of |SubstitutionTemplate|.
1. Return a List whose first element is _siteObj_ and whose subsequent elements are the elements of _remaining_, in order.
</emu-alg>
<emu-grammar>SubstitutionTemplate : TemplateHead Expression TemplateSpans</emu-grammar>
<emu-alg>
1. Let _firstSubRef_ be the result of evaluating |Expression|.
1. Let _firstSub_ be ? GetValue(_firstSubRef_).
1. Let _restSub_ be ? SubstitutionEvaluation of |TemplateSpans|.
1. Assert: _restSub_ is a List.
1. Return a List whose first element is _siteObj_, whose second elements is _firstSub_, and whose subsequent elements are the elements of _restSub_, in order. _restSub_ may contain no elements.
1. Return a List whose first element is _firstSub_ and whose subsequent elements are the elements of _restSub_, in order. _restSub_ may contain no elements.
</emu-alg>
</emu-clause>

Expand Down

0 comments on commit c8044c2

Please sign in to comment.