Sign in
webkit
/
WebKit
/
60c3f717a9141a0f8afd6e8437d26c6404e4424c
/
.
/
LayoutTests
/
js
/
script-tests
/
dfg-array-length-dead.js
blob: 48c237bcba7a32933f9b00304797ee78813d8edb [
file
] [
log
] [
blame
]
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
;
}
dfgShouldBe
(
foo
,
"foo({f:[]})"
,
"42"
);