-
Type:
Sub-task
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: 8
-
Component/s: core-libs
-
None
-
b110
jjs> new RegExp({toString:function(){print("str1")}},{toString:function(){print("str2")}})
Expected: "str1" and then "str2"
Actual: "str2" and then "str1"
jjs> new RegExp(/asdf/, {toString:function(){throw "blubb"}})
Expected: throw TypError instead of "blubb"
Actual: "blubb" is thrown
Expected: "str1" and then "str2"
Actual: "str2" and then "str1"
jjs> new RegExp(/asdf/, {toString:function(){throw "blubb"}})
Expected: throw TypError instead of "blubb"
Actual: "blubb" is thrown