You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[MERGE #5613@sigatrev] MSFT:18327064 OpHelpers returning ints as floats leading to infinite bailouts
Merge pull request #5613 from sigatrev:stringOpt
The following operations on a number as a string all returned doubles even when the value was integral, causing bailouts on some array operations.
```
var i = "1";
+i // Op_ConvNumber_Full
++i; // Op_Increment_Full
-i; // Op_Negate_Full
--i; // Op_Decrement_Full
1 - i; // Op_Subract_Full
1 * i; // Op_Multiply_Ful
1 ** i // Op_Exponentiation_Full
1 % i // Op_Modulus_Full
var ary = [0,1];
// will bail out infinitely
ary[+i];
```
This is already checked in on the OS side
0 commit comments