es-shims/es5-shim

Rounding errors with toExponential in Edge 15/16

redchair123 opened this issue · 4 comments

See chakra-core/ChakraCore#3929 and chakra-core/ChakraCore#4421 . Reproducible example:

(-6.9e-11).toExponential(4);

Pretty much every other JS engine, even IE8+, give the expected "-6.9000e-11" but Edge 15/16 give "-6.8000e-11"

ping @ljharb

The issue was fixed on ChakraCore release1.8. The same fix should apply to upcoming Edge release.

@obastemur do you know which edge version ended up fixing it?

@ljharb Edge17 should be fine. (just tested and it works)

FYI this is still a failure in Edge17 revision 17.17134 (the version used in sauce labs)