blob: 0c9225f2c36eaefaa50f71b34fbbcf24d710c128 [file] [log] [blame]
description(
"Tests that GetLocals on captured variables aren't eliminated too aggressively."
);
function foo() {
var x;
(function(){
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
x = 42;
})();
var y = x;
return y;
}
dfgShouldBe(foo, "foo()", "42");