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

XMLWordPrintable

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

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

              Created:
              Updated:
              Resolved: