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: * After "do-while" is broken, (normal, V, empty) is returned michael@0: * michael@0: * @path ch12/12.6/12.6.1/S12.6.1_A5.js michael@0: * @description Using eval michael@0: */ michael@0: michael@0: __evaluated = eval("do {__in__do__before__break=1; break; __in__do__after__break=2;} while(0)"); michael@0: michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: //CHECK#1 michael@0: if (__in__do__before__break !== 1) { michael@0: $ERROR('#1: __in__do__before__break === 1. Actual: __in__do__before__break ==='+ __in__do__before__break ); michael@0: } michael@0: // michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: //CHECK#2 michael@0: if (typeof __in__do__after__break !== "undefined") { michael@0: $ERROR('#2: typeof __in__do__after__break === "undefined". Actual: typeof __in__do__after__break ==='+ typeof __in__do__after__break ); michael@0: } michael@0: // michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: //CHECK#3 michael@0: if (__evaluated !== 1) { michael@0: $ERROR('#3: __evaluated === 1. Actual: __evaluated ==='+ __evaluated ); michael@0: } michael@0: // michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: