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 continue within eval statement that is within an IterationStatement yields SyntaxError
6 *
7 * @path ch12/12.7/S12.7_A7.js
8 * @description Using eval "eval("continue LABEL1")"
9 */
11 var x=0,y=0;
13 //////////////////////////////////////////////////////////////////////////////
14 //CHECK#1
15 try{
16 LABEL1 : do {
17 x++;
18 eval("continue LABEL1");
19 y++;
20 } while(0);
21 $ERROR('#1: eval("continue LABEL1") does not lead to throwing exception');
22 } catch(e){
23 if(!(e instanceof SyntaxError)){
24 $ERROR("1.1: Appearing of continue within eval statement inside of IterationStatement yields SyntaxError");
25 }
26 }
27 //
28 //////////////////////////////////////////////////////////////////////////////