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

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

      [].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

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

              Created:
              Updated:
              Resolved: