summaryrefslogtreecommitdiff
path: root/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js')
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js
index 8cd33f8c3..c71ddfcd8 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js
@@ -14,10 +14,10 @@ var __instance = new String("[a-b]");
__instance.exec = RegExp.prototype.exec;
//CHECK#1
- try {
- $ERROR('#1.1: __instance = new String("[a-b]"); __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 String("[a-b]"); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e));
- }
- }
+try {
+ $ERROR('#1.1: __instance = new String("[a-b]"); __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 String("[a-b]"); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e));
+ }
+}