diff options
Diffstat (limited to 'test/suite/ch12/12.6/12.6.1/S12.6.1_A9.js')
-rw-r--r-- | test/suite/ch12/12.6/12.6.1/S12.6.1_A9.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A9.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A9.js index 7ef695f56..e9e831b07 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A9.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_A9.js @@ -15,9 +15,11 @@ try { var x = 1; abaracadabara; } while(0); - $ERROR('#1: "abbracadabra" lead to throwing exception'); - -} catch (e) {} + $ERROR('#1: "abbracadabra" lead to throwing exception');
+
+} catch (e) {
+ if (e instanceof Test262Error) throw e; +} if (x !== 1) { $ERROR('#1.1: x === 1. Actual: x ==='+ x ); |