michael@0: // Copyright 2009 the Sputnik authors. All rights reserved. michael@0: // This code is governed by the BSD license found in the LICENSE file. michael@0: michael@0: /** michael@0: * Appearing of "break" within eval statement that is nested in an IterationStatement yields SyntaxError michael@0: * michael@0: * @path ch12/12.8/S12.8_A7.js michael@0: * @description Using eval "eval("break LABEL1")" michael@0: */ michael@0: michael@0: var x=0,y=0; michael@0: michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: //CHECK#1 michael@0: try{ michael@0: LABEL1 : do { michael@0: x++; michael@0: eval("break LABEL1"); michael@0: y++; michael@0: } while(0); michael@0: $ERROR('#1: eval("break LABEL1") does not lead to throwing exception'); michael@0: } catch(e){ michael@0: if(!(e instanceof SyntaxError)){ michael@0: $ERROR("1.1: Appearing of break within eval statement inside of IterationStatement yields SyntaxError"); michael@0: } michael@0: } michael@0: // michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: