diff options
Diffstat (limited to 'test/suite/ch15/15.11/15.11.4/S15.11.4_A4.js')
-rw-r--r-- | test/suite/ch15/15.11/15.11.4/S15.11.4_A4.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/suite/ch15/15.11/15.11.4/S15.11.4_A4.js b/test/suite/ch15/15.11/15.11.4/S15.11.4_A4.js index 5d73a72af..2b9dd3ce9 100644 --- a/test/suite/ch15/15.11/15.11.4/S15.11.4_A4.js +++ b/test/suite/ch15/15.11/15.11.4/S15.11.4_A4.js @@ -12,8 +12,10 @@ //CHECK#1 try { __instance = new Object.prototype; - $FAIL('#1: "__instance = new Object.prototype" lead to throwing exception'); -} catch (e) {} + $FAIL('#1: "__instance = new Object.prototype" lead to throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e; +} // ////////////////////////////////////////////////////////////////////////////// |