diff options
Diffstat (limited to 'test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js')
-rw-r--r-- | test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js index ee0dad0cd..dbea95b38 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js @@ -13,7 +13,12 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}) throw "invalof". Actual: ' + (/[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}))); + $ERROR('#1.1: /[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}) throw "invalof". Actual: ' + (/[a-z]/.exec({ + toString: void 0, + valueOf: function() { + throw "invalof" + } + }))); } catch (e) { if (e !== "invalof") { $ERROR('#1.2: /[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}) throw "invalof". Actual: ' + (e)); |