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

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

      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.

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

              Created:
              Updated:
              Resolved: