-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
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
Exponential operator in if condition is not transpiled #2821
Comments
I can't seem to repro this with the compiler jar so this seems to be a quirk of the webservice. Will take a look. |
@MatrixFrog see this repo for repro https://github.com/teppeis-sandbox/closure-compiler-repro-2821 |
@teppeis I've reproduced this in the unit test. I'm debugging it now. |
Even simpler repro (2 ** 3) / 3; Looks like the root cause is in IRFactory. |
correction to repro |
fix sent for internal review |
@MatrixFrog @brad4d thanks! |
Fixes google#2821 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=187221401
Original source code:
Expected transpiled code:
Actual result
Same result in ternary operator.
Also, it throws an error in Advanced Optimization.
If another exponential operator is in body, they are transpiled.
Original:
Transpiled:
The text was updated successfully, but these errors were encountered: