diff options
author | David Fugate <dfugate@microsoft.com> | 2012-02-24 15:40:42 -0800 |
---|---|---|
committer | David Fugate <dfugate@microsoft.com> | 2012-02-24 15:40:42 -0800 |
commit | c64d7b5758acadb89a674dac88b6dd4671293189 (patch) | |
tree | 0226a052220887027d0fbf70211866cb25ddbb35 /test/suite/ch12 | |
parent | d9e409ac1bf86d3d7bba85e9be2d5663de11b1a1 (diff) |
https://bugs.ecmascript.org/show_bug.cgi?id=274
Fixed.
Re-gen'ed the website.
Diffstat (limited to 'test/suite/ch12')
-rw-r--r-- | test/suite/ch12/12.6/12.6.1/S12.6.1_A2.js | 6 | ||||
-rw-r--r-- | test/suite/ch12/12.6/12.6.1/S12.6.1_A9.js | 8 | ||||
-rw-r--r-- | test/suite/ch12/12.6/12.6.2/S12.6.2_A9.js | 8 |
3 files changed, 14 insertions, 8 deletions
diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A2.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A2.js index 6540356a0..023c7d4a2 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A2.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_A2.js @@ -10,8 +10,10 @@ try { do __in__do = "reached"; while (abbracadabra); - $ERROR('#1: \'do __in__do = "reached"; while (abbracadabra)\' lead to throwing exception'); -} catch (e) {} + $ERROR('#1: \'do __in__do = "reached"; while (abbracadabra)\' lead to throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e; +} ////////////////////////////////////////////////////////////////////////////// //CHECK#1 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 ); diff --git a/test/suite/ch12/12.6/12.6.2/S12.6.2_A9.js b/test/suite/ch12/12.6/12.6.2/S12.6.2_A9.js index 12618180f..f8cbed0a1 100644 --- a/test/suite/ch12/12.6/12.6.2/S12.6.2_A9.js +++ b/test/suite/ch12/12.6/12.6.2/S12.6.2_A9.js @@ -15,9 +15,11 @@ try { var x = 1; abaracadabara; }; - $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: while statement evaluates as is, without syntax checks'); |