Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Commit b6e637f

Browse files
committed
Change Syntax Error to emu-note
1 parent 0f5b528 commit b6e637f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

spec.html

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,14 @@ <h1>Updated Syntactic Grammar Productions</h1>
148148
`?.` IdentifierName
149149
`?.` Arguments[?Yield, ?Await]
150150
`?.` TemplateLiteral[?Yield, ?Await, +Tagged]
151-
<ins>`?.` PrivateIdentifier</ins>
152151
OptionalChain[?Yield, ?Await] `[` Expression[+In, ?Yield, ?Await] `]`
153152
OptionalChain[?Yield, ?Await] `.` IdentifierName
154153
OptionalChain[?Yield, ?Await] Arguments[?Yield, ?Await]
155154
OptionalChain[?Yield, ?Await] TemplateLiteral[?Yield, ?Await, +Tagged]
156155
<ins>OptionalChain[?Yield, ?Await] `.` PrivateIdentifier</ins>
157156
</emu-grammar>
157+
158+
<emu-note>`?.` PrivateIdentifier is currently a unstated Syntax Error</emu-note>
158159
</emu-clause>
159160

160161
<emu-clause id="sec-static-semantics-early-errors">
@@ -219,12 +220,6 @@ <h1>Static Semantics: Early Errors</h1>
219220
<li>It is a Syntax Error if AllPrivateIdentifiersValid of |ModuleItemList| with an empty List as an argument is *false*.</li>
220221
</ul>
221222
<emu-note type=editor>References to |PrivateIdentifier|s which are not lexically present cause an early error.</emu-note>
222-
223-
<emu-grammar>OptionalChain : `?.` PrivateIdentifier</emu-grammar>
224-
<ul>
225-
<li>It is a Syntax Error if any code matches this production.</li>
226-
</ul>
227-
<emu-note>This production exists to explicitly reserve the syntax for future proposals.</emu-note>
228223
</emu-clause>
229224

230225
<emu-clause id="sec-all-private-identifiers-valid" aoid="AllPrivateIdentifiersValid" oldids="sec-all-private-names-valid">

0 commit comments

Comments
 (0)