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

XMLWordPrintable

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

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

              Created:
              Updated:
              Resolved: