You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 25, 2022. It is now read-only.
It is a Syntax Error if any code matches this production.
187
+
</li>
188
+
</ul>
189
+
<emu-note>
190
+
<p>This production exists in order to prevent automatic semicolon insertion rules (<emu-xrefhref="#sec-automatic-semicolon-insertion"></emu-xref>) to be applied to the following code:</p>
191
+
<pre><codeclass="javascript">
192
+
a?.b
193
+
`c`
194
+
</code></pre>
195
+
<p>so that it would be interpreted as two valid statements. The purpose is to maintain consistency with similar code without optional chaining operator:</p>
196
+
<pre><codeclass="javascript">
197
+
a.b
198
+
`c`
199
+
</code></pre>
200
+
<p>which is a valid statement and where automatic semicolon insertion does not apply.</p>
0 commit comments