String.prototype.charAt and charCodeAt do not evaluate 'self' and 'pos' arguments in right order

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: core-libs
    • None
    • b115
    • generic
    • generic

      jjs> String.prototype.charAt.call({toString:function(){print("toStr")}}, {valueOf:function(){print("valueOf")}})

      Expected: first "toStr" and then "valueOf" printed
      Actual: "valueOf" and then "toStr" printed

      jjs> String.prototype.charCodeAt.call({toString:function(){print("toStr")}}, {valueOf:function(){print("valueOf")}})

      Expected: first "toStr" and then "valueOf" printed
      Actual: "valueOf" and then "toStr" printed

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

              Created:
              Updated:
              Resolved: