diff options
Diffstat (limited to 'test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T4.js')
-rw-r--r-- | test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T4.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T4.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T4.js index 5040c3dde..dbf2ab6dc 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T4.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T4.js @@ -14,10 +14,10 @@ var __instance = new String("[a-b]"); __instance.test = RegExp.prototype.test; //CHECK#1 - try { - $ERROR('#1.1: __instance = new String("[a-b]"); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (__instance.test("message to investigate"))); - } catch (e) { - if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance = new String("[a-b]"); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (e)); - } - } +try { + $ERROR('#1.1: __instance = new String("[a-b]"); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (__instance.test("message to investigate"))); +} catch (e) { + if ((e instanceof TypeError) !== true) { + $ERROR('#1.2: __instance = new String("[a-b]"); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (e)); + } +} |