Deoptimizing negation produces wrong result for zero

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 9
    • Affects Version/s: 9
    • Component/s: core-libs
    • None
    • b17
    • generic
    • generic
    • Verified

        print(1/(function() { var f = 0; return -f; })())

        Correct result is -Infinity. Under optimistic compilation with static type calculation, this produces Infinity.

              Assignee:
              Attila Szegedi
              Reporter:
              Attila Szegedi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: