aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A7.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A7.js')
-rw-r--r--test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A7.js6
1 files changed, 4 insertions, 2 deletions
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;
+}