summaryrefslogtreecommitdiff
path: root/test/suite/ch15/15.11/15.11.4/S15.11.4_A3.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/ch15/15.11/15.11.4/S15.11.4_A3.js')
-rw-r--r--test/suite/ch15/15.11/15.11.4/S15.11.4_A3.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/suite/ch15/15.11/15.11.4/S15.11.4_A3.js b/test/suite/ch15/15.11/15.11.4/S15.11.4_A3.js
index 47c44d3df..6b39d0bca 100644
--- a/test/suite/ch15/15.11/15.11.4/S15.11.4_A3.js
+++ b/test/suite/ch15/15.11/15.11.4/S15.11.4_A3.js
@@ -12,8 +12,10 @@
//CHECK#1
try {
Error.prototype();
- $FAIL('#1: "Error.prototype()" lead to throwing exception');
-} catch (e) {}
+ $FAIL('#1: "Error.prototype()" lead to throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e;
+}
//
//////////////////////////////////////////////////////////////////////////////