blob: c3fc19c6faa3ac21fd9ce6786a178b980cbe2fc4 [file] [log] [blame] [edit]
description(
"Tests that the specific value optimization does not break when the relevant structure is a dictionary."
)
function foo() {
return x;
}
x = function() { };
var expected = "\"function() { }\"";
for (var i = 0; i < 1000; ++i) {
eval("i" + i + " = " + i);
if (i == 200) {
x = 42;
expected = "\"42\"";
}
shouldBe("\"\" + foo()", expected);
}