Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8011086 Specification fails (outside test262)
  3. JDK-8011357

Array.prototype.slice and Array.prototype.splice should not call user defined valueOf of start, end arguments more than once

    XMLWordPrintable

Details

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

    Description

      [].slice({valueOf:function(){print("get-start")}}, {valueOf:function(){print("get-end")}})

      => prints "get-start|end" twice but should only be once

      [].splice({valueOf:function(){print("get-start")}})

      => prints "get-start" twice but should only be once

      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: