diff options
Diffstat (limited to 'test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A7.js')
-rw-r--r-- | test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A7.js | 6 |
1 files changed, 4 insertions, 2 deletions
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; +} |