blob: 3ae297fc933ffd3d90f3be24d3b3ee65c5ee317b [file] [log] [blame]
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: |
The result of evaluating "for( ExpNoIn;Exp;Exp)" loop is returning
(normal, evalValue, empty)
es5id: 12.6.3_A9.1
description: Using eval
---*/
var supreme, count;
supreme=5;
var __evaluated = eval("for(count=0;;) {if (count===supreme)break;else count++; }");
assert.sameValue(__evaluated, void 0, '#1: __evaluated === 4. Actual: __evaluated ==='+ __evaluated);