Source code

Revision control

Copy as Markdown

Other Tools

// Any copyright is dedicated to the Public Domain.
"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!");