blob: a9417b5857ce3afd3083aab42e348c2dec3df3e7 [file] [log] [blame]
description(
"Tests that having a dead, and redundant, use of array.length doesn't cause compiler crashes."
);
function foo(array) {
var x = array.length; // This is dead. If it wasn't, it would be redundant with the one below.
return array.length;
}
for (var i = 0; i < 128; ++i)
shouldBe("foo([1, 2, 3])", "3");