[parser/spec] ~
,-
and await
inconsistency on function expression literals.
#3750
Labels
~
,-
and await
inconsistency on function expression literals.
#3750
There appears to be an inconsistency wrt unary prefix
-
,~
andawait
operators on function expression literals between the implementation and DSP.Consider:
and
and
DSP rejects those operators in that position, but those operators are supported by the implementation:
Note: something similar can be observed with
!
, i.e.final a = !() => 0;
, but, AFAIK, ! is never supported as an operator on function expression literals.The text was updated successfully, but these errors were encountered: