1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
3 * Any copyright is dedicated to the Public Domain.
4 * http://creativecommons.org/licenses/publicdomain/
5 * Contributor: Blake Kaplan
8 //-----------------------------------------------------------------------------
9 var BUGNUMBER = 470758;
10 var summary = 'Promote evald initializer into upvar';
15 //-----------------------------------------------------------------------------
17 //-----------------------------------------------------------------------------
22 printBugNumber(BUGNUMBER);
23 printStatus (summary);
27 (function(){var x;eval("for (x = 0; x < 5; x++);");print(actual = x);})();
29 reportCompare(expect, actual, summary);