Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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 "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 */
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 continue LABEL2;
23 LABEL2 : do {
24 x++;
25 y++;
26 } while(0);
27 };