Sign in
chromium
/
external
/
github.com
/
WebKit
/
webkit
/
refs/heads/main
/
.
/
JSTests
/
stress
/
get-local-elimination.js
blob: 6d990b43190820a6ef9a027041a18eb814564fa2 [
file
] [
edit
]
var
True
=
true
;
function
foo
(
a
)
{
var
x
=
a
;
if
(
True
)
return
a
+
x
;
}
noInline
(
foo
);
for
(
var
i
=
0
;
i
<
testLoopCount
;
++
i
)
{
var
result
=
foo
(
42
);
if
(
result
!=
84
)
throw
"Error: bad result: "
+
result
;
}