Sign in
webkit
/
WebKit
/
bd9ea4a5474a3d7a80a4f79c542279d7b8a087a0
/
.
/
LayoutTests
/
js
/
script-tests
/
dfg-cse-dead-get-scoped-var.js
blob: 987a3a8a2b7010821a52c9465dfafc6f4494d424 [
file
] [
log
] [
blame
]
description
(
"Tests that CSE doesn't try to match against a dead GetScopedVar."
);
function
foo
(
a
)
{
var
x
=
a
;
return
function
(
p
)
{
if
(
p
)
{
var
tmp
=
x
;
return
x
;
}
return
42
;
};
}
dfgShouldBe
(
foo
(
0
),
"foo(i)(false)"
,
"42"
);