Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8012442 Spec issues wrt few more built-in objects such as Date, Array, Function and RegExp
  3. JDK-8012457

Function.prototype.apply should accept any array-like argument for function arguments

    XMLWordPrintable

Details

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

    Description


      Function().apply(null, Object.defineProperty([],"0",{get: function(){print("getter"); return 0}}))
      => should print "getter"

      Function().apply(null, {length: null})
      Function().apply(null, {length: 0.1})
      => should not throw an exception

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: