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

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

XMLWordPrintable

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


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

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

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

              Created:
              Updated:
              Resolved: