Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8025134 Andre's conformance bugs with hg tip fa491b75d3e4
  3. JDK-8025312

parseInt should convert 'radix' argument to ToInt32 even if empty string is parsed

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • core-libs
    • None
    • b110
    • generic
    • generic

    Description

      Please see ECMA 15.1.2.2 parseInt (string , radix) for the order of steps.

      jjs> parseInt("", {valueOf:function(){throw "blubb"}})

      Expected: exception to be thrown
      Actual: NaN returned

      Attachments

        Activity

          People

            sundar Sundararajan Athijegannathan
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: