-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editorial: quick fixes #2022
Editorial: quick fixes #2022
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks. My comments are for posterity, not suggested changes.
spec.html
Outdated
@@ -13156,7 +13156,7 @@ <h1>Runtime Semantics: GetTemplateObject ( _templateLiteral_ )</h1> | |||
1. Let _index_ be 0. | |||
1. Repeat, while _index_ < _count_, | |||
1. Let _prop_ be ! ToString(_index_). | |||
1. Let _cookedValue_ be the String value _cookedStrings_[_index_]. | |||
1. Let _cookedValue_ be _cookedStrings_[_index_]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For posterity, I want to note that this was correct before #773; it was an oversight that this was not changed as part of this PR.
@@ -13484,15 +13484,11 @@ <h1>Static Semantics: Contains</h1> | |||
</emu-alg> | |||
<emu-grammar>OptionalChain : `?.` IdentifierName</emu-grammar> | |||
<emu-alg> | |||
1. If _symbol_ is a |ReservedWord|, return *false*. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gah, thanks. I noticed this was going to happen as part of the optional chaining PR and then completely forgot about it when #1519 landed.
spec.html
Outdated
@@ -27240,7 +27236,7 @@ <h1>Number.prototype.toExponential ( _fractionDigits_ )</h1> | |||
1. Return the string-concatenation of _s_ and _m_. | |||
</emu-alg> | |||
<emu-note> | |||
<p>For implementations that provide more accurate conversions than required by the rules above, it is recommended that the following alternative version of step 10.b.i be used as a guideline:</p> | |||
<p>For implementations that provide more accurate conversions than required by the rules above, it is recommended that the following alternative version of step 9.b.i be used as a guideline:</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to self: tc39/ecmarkup#192 needs addressing so this can't happen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See also: tc39/ecmarkdown#56
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thank you for fixes.
PR tc39#773 introduced |NotEscapeSequence|, whose TV is *undefined*. Thus, in the List returned by TemplateStrings with _raw_ == *false*, any element might be *undefined*. In GetTemplateObject(), `_cookedStrings_` gets this List, so when its elements are later extracted via `_cookedStrings_[_index_]`, the "inline assertion" of `the String value` no longer applies.
... for recent and not-that-recent merges.