-
Type:
Sub-task
-
Resolution: Fixed
-
Priority:
P3
-
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
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