Arrays with missing elements are not properly sorted

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: