We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spec clearly says to evaluate the CoalesceExpression once:
https://tc39.es/ecma262/multipage/ecmascript-language-expressions.html#prod-CoalesceExpression
CoalesceExpression : CoalesceExpressionHead ?? BitwiseORExpression
Yet, we generate tree like this, that evaluates it multiple times.
VAR 2 NAME eval1 2 HOOK OR SHEQ NULL CALL 2 NAME f 2 SHEQ NAME undefined CALL 2 NAME f 2 NUMBER 42.0 2 CALL 2 NAME f 2
I'm working on fixing this. (Thanks @andreabergia for noticing!)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Spec clearly says to evaluate the CoalesceExpression once:
https://tc39.es/ecma262/multipage/ecmascript-language-expressions.html#prod-CoalesceExpression
CoalesceExpression : CoalesceExpressionHead ?? BitwiseORExpression
a. Let rRef be ? Evaluation of BitwiseORExpression.
b. Return ? GetValue(rRef).
a. Return lVal.
Yet, we generate tree like this, that evaluates it multiple times.
I'm working on fixing this. (Thanks @andreabergia for noticing!)
The text was updated successfully, but these errors were encountered: