1 /* -*- Mode: java; tab-width:8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * Any copyright is dedicated to the Public Domain.
4 * http://creativecommons.org/licenses/publicdomain/
7 //-----------------------------------------------------------------------------
8 var BUGNUMBER = 531682;
9 var summary = 'Checking proper wrapping of scope in eval(source, scope)';
13 //-----------------------------------------------------------------------------
17 //-----------------------------------------------------------------------------
21 return function() { return x; }
26 printBugNumber(BUGNUMBER);
27 printStatus (summary);
29 // The scope chain in eval should be just scope1() and the global object.
30 actual = eval('x', scope1());
32 reportCompare(expect, actual, summary);