Array.prototype.indexOf should return -1 when array is of length zero

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: core-libs
    • None
    • b115
    • generic
    • generic


      jjs> [].indexOf(null, {valueOf:function(){throw "not reached"}})

      Expected: returns -1
      Actual: throws "not reached"

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

              Created:
              Updated:
              Resolved: