js/src/tests/test262/ch12/12.7/S12.7_A8_T1.js

branch
TOR_BUG_3246
changeset 6
8bccb770b82d
equal deleted inserted replaced
-1:000000000000 0:f60fb02bd1a4
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /**
5 * Appearing of "continue" within a "try/catch" Block yields SyntaxError
6 *
7 * @path ch12/12.7/S12.7_A8_T1.js
8 * @description Checking if execution of "continue Identifier" within catch Block fails
9 * @negative
10 */
11
12 var x=0,y=0;
13
14 try{
15 LABEL1 : do {
16 x++;
17 throw "gonna leave it";
18 y++;
19 } while(0);
20 $ERROR('#1: throw "gonna leave it" lead to throwing exception');
21 } catch(e){
22 continue LABEL2;
23 LABEL2 : do {
24 x++;
25 y++;
26 } while(0);
27 };
28

mercurial