blob: 8e68f9ba1013d580cfb646e2d02fbbf4abf86989 [file] [log] [blame]
description(
"Test to make sure the eval code cache doesn't crash or give wrong results in odd situations."
);
var str = "(function () { return a; })";
var a = "first";
var first = eval(str)();
shouldBe("first", "'first'");
with ({a : "second"}) {
var second = eval(str)();
}
shouldBe("second", "'second'");
var successfullyParsed = true;