blob: aad036e757e56eefb4dabc39508431e608d75c0a [file]
description(
"Tests that an array length access being dead does not result in register allocation failures."
);
function foo(x) {
var y = x.f.length;
return 42;
}
for (var i = 0; i < 1000; ++i) {
shouldBe("foo({f:[]})", "42");
}