S12.6.2_A3.js (978B)
1 // Copyright 2009 the Sputnik authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 info: | 6 When "while" IterationStatement is evaluated, (normal, V, empty) is 7 returned 8 es5id: 12.6.2_A3 9 description: Using eval 10 ---*/ 11 12 var __evaluated, __in__do; 13 14 __evaluated = eval("while (false) __in__do=1;"); 15 16 ////////////////////////////////////////////////////////////////////////////// 17 //CHECK# 18 if (__in__do !== undefined) { 19 throw new Test262Error('#1: __in__do === undefined. Actual: __in__do ==='+ __in__do ); 20 } 21 // 22 ////////////////////////////////////////////////////////////////////////////// 23 24 ////////////////////////////////////////////////////////////////////////////// 25 //CHECK#2 26 if (__evaluated !== undefined) { 27 throw new Test262Error('#2: __evaluated === undefined. Actual: __evaluated ==='+ __evaluated ); 28 } 29 // 30 ////////////////////////////////////////////////////////////////////////////// 31 32 reportCompare(0, 0);