head-init-expr-check-empty-inc-empty-completion.js (543B)
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 The result of evaluating "for( ExpNoIn;Exp;Exp)" loop is returning 7 (normal, evalValue, empty) 8 es5id: 12.6.3_A9.1 9 description: Using eval 10 ---*/ 11 12 var supreme, count; 13 supreme=5; 14 15 var __evaluated = eval("for(count=0;;) {if (count===supreme)break;else count++; }"); 16 17 assert.sameValue(__evaluated, void 0, '#1: __evaluated === 4. Actual: __evaluated ==='+ __evaluated); 18 19 reportCompare(0, 0);