aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/ch15/15.5
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/ch15/15.5')
-rw-r--r--test/suite/ch15/15.5/15.5.3/S15.5.3.2_A4.js6
-rw-r--r--test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A7.js6
-rw-r--r--test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A7.js6
-rw-r--r--test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A7.js6
-rw-r--r--test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A7.js6
-rw-r--r--test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A7.js6
-rw-r--r--test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A7.js6
7 files changed, 28 insertions, 14 deletions
diff --git a/test/suite/ch15/15.5/15.5.3/S15.5.3.2_A4.js b/test/suite/ch15/15.5/15.5.3/S15.5.3.2_A4.js
index 3e3ea5f72..fd9b0038e 100644
--- a/test/suite/ch15/15.5/15.5.3/S15.5.3.2_A4.js
+++ b/test/suite/ch15/15.5/15.5.3/S15.5.3.2_A4.js
@@ -16,8 +16,10 @@ delete String.fromCharCode;
//CHECK#1
try {
var __obj = new __fcc__func(65,66,66,65);
- $FAIL('#1: __fcc__func = String.fromCharCode; var __obj = new __fcc__func(65,66,66,65) lead to throwing exception');
-} catch (e) {}
+ $FAIL('#1: __fcc__func = String.fromCharCode; var __obj = new __fcc__func(65,66,66,65) lead to throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e;
+}
//
//////////////////////////////////////////////////////////////////////////////
diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A7.js
index b63618783..11b66aabb 100644
--- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A7.js
+++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A7.js
@@ -12,6 +12,8 @@ var __FACTORY = String.prototype.match;
try {
var __instance = new __FACTORY;
- $FAIL('#1: __FACTORY = String.prototype.match; __FACTORY = String.prototype.match; __instance = new __FACTORY lead to throwing exception');
-} catch (e) {}
+ $FAIL('#1: __FACTORY = String.prototype.match; __FACTORY = String.prototype.match; __instance = new __FACTORY lead to throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e;
+}
diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A7.js
index 17e90a55d..987862d13 100644
--- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A7.js
+++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A7.js
@@ -12,6 +12,8 @@ var __FACTORY = String.prototype.replace;
try {
var __instance = new __FACTORY;
- $FAIL('#1: __FACTORY = String.prototype.replace; "__instance = new __FACTORY" lead to throwing exception');
-} catch (e) {}
+ $FAIL('#1: __FACTORY = String.prototype.replace; "__instance = new __FACTORY" lead to throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e;
+}
diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A7.js
index bcc7e4033..10c5424aa 100644
--- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A7.js
+++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A7.js
@@ -12,6 +12,8 @@ var __FACTORY = String.prototype.split;
try {
var __instance = new __FACTORY;
- $FAIL('#1: __FACTORY = String.prototype.split; "__instance = new __FACTORY" lead to throwing exception');
-} catch (e) {}
+ $FAIL('#1: __FACTORY = String.prototype.split; "__instance = new __FACTORY" lead to throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e;
+}
diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A7.js
index ea51cd5b3..5a97c5746 100644
--- a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A7.js
+++ b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A7.js
@@ -12,6 +12,8 @@ var __FACTORY = String.prototype.charCodeAt;
try {
var __instance = new __FACTORY;
- $FAIL('#1: __FACTORY = String.prototype.charCodeAt; "__instance = new __FACTORY" lead to throwing exception');
-} catch (e) {}
+ $FAIL('#1: __FACTORY = String.prototype.charCodeAt; "__instance = new __FACTORY" lead to throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e;
+}
diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A7.js
index e27f8a039..62267a230 100644
--- a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A7.js
+++ b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A7.js
@@ -12,6 +12,8 @@ var __FACTORY = String.prototype.concat;
try {
var __instance = new __FACTORY;
- $FAIL('#1: __FACTORY = String.prototype.concat; "__instance = new __FACTORY" lead throwing exception');
-} catch (e) {}
+ $FAIL('#1: __FACTORY = String.prototype.concat; "__instance = new __FACTORY" lead throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e;
+}
diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A7.js
index 349c8b655..42ef95947 100644
--- a/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A7.js
+++ b/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A7.js
@@ -12,6 +12,8 @@ var __FACTORY = String.prototype.localeCompare;
try {
var __instance = new __FACTORY;
- $FAIL('#1: __FACTORY = String.prototype.localeCompare; __instance = new __FACTORY lead to throwing exception');
-} catch (e) {}
+ $FAIL('#1: __FACTORY = String.prototype.localeCompare; __instance = new __FACTORY lead to throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e;
+}