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
The recent change in #17 to ban infix tokens runs afoul of an ASI hazard that results in different semantics between throw expressions and ThrowStatement for the +, -, /, and /= tokens:
a ?? throw b // <- ASI inserts semicolon
+ c // <- prefix '+'
// vs
throw b // <- no ASI
+ c
a ?? throw b // <- ASI inserts semicolon
- c // <- prefix '-'
// vs
throw b // <- no ASI
- c
a ?? throw b // <- ASI inserts semicolon
/ c/d // <- regexp literal
// vs
throw b // <- no ASI
/ c/d
a = throw b // <- ASI inserts semicolon
/=c/d // <- regexp literal
// vs
throw b // <- no ASI
/=c/d
The text was updated successfully, but these errors were encountered:
The recent change in #17 to ban infix tokens runs afoul of an ASI hazard that results in different semantics between
throw
expressions and ThrowStatement for the+
,-
,/
, and/=
tokens:The text was updated successfully, but these errors were encountered: