Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8011700 More compatibility issues reported by André Bargull on nashorn-dev
  3. JDK-8012240

Array.prototype.map.call({length: -1, get 0(){throw 0}}, function(){}).length does not throw error

XMLWordPrintable

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

       Array.prototype.map.call({length: -1, get 0(){throw 0}}, function(){}).length

      should throw error ("0") when trying to read first element of array rather than evaluating to a length value.

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

              Created:
              Updated:
              Resolved: