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