michael@0: // Any copyright is dedicated to the Public Domain. michael@0: // http://creativecommons.org/licenses/publicdomain/ michael@0: "use strict"; michael@0: michael@0: //----------------------------------------------------------------------------- michael@0: var BUGNUMBER = 514568; michael@0: var summary = michael@0: "Verify that we don't optimize free names to gnames in eval code that's " + michael@0: "global, when the name refers to a binding introduced by a strict mode " + michael@0: "eval frame"; michael@0: michael@0: print(BUGNUMBER + ": " + summary); michael@0: michael@0: /************** michael@0: * BEGIN TEST * michael@0: **************/ michael@0: michael@0: var x = "global"; michael@0: assertEq(eval('var x = "eval"; eval("x")'), "eval"); michael@0: michael@0: /******************************************************************************/ michael@0: michael@0: if (typeof reportCompare === "function") michael@0: reportCompare(true, true); michael@0: michael@0: print("Tests complete!");