Bug Report
🔎 Search Terms
infinity enum variable let shadow
🕗 Version & Regression Information
Every version I tested
⏯ Playground Link
Playground link with relevant code
💻 Code
{letInfinity=3;enumA{X=1/0}console.log(A.X)}🙁 Actual behavior
{letInfinity=3;letA;(function(A){A[A["X"]=Infinity]="X";})(A||(A={}));console.log(A.X);}and logs 3
🙂 Expected behavior
It should log the result of 1 / 0, which is Infinity.
Somewhat related to #54981.
Bug Report
🔎 Search Terms
infinity enum variable let shadow
🕗 Version & Regression Information
Every version I tested
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
and logs
3🙂 Expected behavior
It should log the result of
1 / 0, which isInfinity.Somewhat related to #54981.