Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
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_T1.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 LABEL2;
23 LABEL2 : do {
24 x++;
25 y++;
26 } while(0);
27 }