Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /**
5 * Appearing of "break" within "try/catch" Block yields SyntaxError
6 *
7 * @path ch12/12.8/S12.8_A8_T2.js
8 * @description Checking if using "break Identifier" from within catch Block appears to be invalid
9 * @negative
10 */
12 var x=0,y=0;
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 break;
23 LABEL2 : do {
24 x++;
25 y++;
26 } while(0);
27 }