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