When immediately followed by comma without an initial expression, the return statement should result in a syntax error. Currently, as long as a "second" expression is included, the parser does not recognize this. So, return, 1 is considered valid. This code seems to be the culprit. Note that if the expression after the comma is excluded, this correctly emits a syntax error.
When immediately followed by comma without an initial expression, the
return
statement should result in a syntax error. Currently, as long as a "second" expression is included, the parser does not recognize this. So,return, 1
is considered valid. This code seems to be the culprit. Note that if the expression after the comma is excluded, this correctly emits a syntax error.