diff options
Diffstat (limited to 'test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T5.js')
-rw-r--r-- | test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T5.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T5.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T5.js index 1b75152ed..146eeacf4 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T5.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T5.js @@ -14,10 +14,10 @@ var __instance = new Boolean(false); __instance.exec = RegExp.prototype.exec; //CHECK#1 -try { - $ERROR('#1.1: __instance = new Boolean(false); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); -} catch (e) { - if ((e instanceof TypeError !== true)) { - $ERROR('#1.2: __instance = new Boolean(false); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e)); + try { + $ERROR('#1.1: __instance = new Boolean(false); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); + } catch (e) { + if ((e instanceof TypeError !== true)) { + $ERROR('#1.2: __instance = new Boolean(false); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e)); + } } -} |