Sign in
chromium
/
external
/
github.com
/
WebKit
/
webkit
/
refs/heads/main
/
.
/
JSTests
/
stress
/
ftl-arithtan.js
blob: 5ae2234a119d2c17ae81052a6364151fb0db1ce1 [
file
] [
edit
]
function
foo
(
x
)
{
return
Math
.
tan
(
x
);
}
noInline
(
foo
);
var
expected
=
foo
(
testLoopCount
-
1
);
var
j
=
0
;
for
(
var
i
=
0
;
i
<
testLoopCount
;
++
i
)
j
=
foo
(
i
);
if
(
expected
!=
j
){
throw
`
Error
:
$
{
j
}`;
}