Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-66096

Can't override Array.prototype.find()

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • None
    • None
    • 0
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      From Jira7.5, find-polyfill.js is added to provide Array.prototype.find() for old browsers(ex. IE11).

      But Array.prototype.find() in this implementation can't be overridden .
      Our add-on don't work because the library we use overrides Array.prototype.find() in a subtype of Array.

       

      We hope to be able to override 'find' function like this way.

      Also we think Jira had better to do so for the following reasons,

      1. The polyfill library(such as babel-polyfill) latest ReactJS encourages is overridable
      2. Though modern browsers have native implementation for Array.prototype.find(), they all are overridable

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            6890c1841aad Kenichi Abe(JP)
            Votes:
            16 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated: