Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8011086 Specification fails (outside test262)
  3. JDK-8011552

Arrays with missing elements are not properly sorted

    XMLWordPrintable

Details

    • Sub-task
    • Status: Closed
    • P4
    • Resolution: Fixed
    • None
    • 8
    • core-libs
    • None
    • b86
    • generic
    • generic
    • Verified

    Description

      The following expression

          [,void 0].sort().hasOwnProperty("1")

      evaluates true. It should be false. Missing elements are added as 'undefined' values to sorted array - but these should not be added.

      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: