Sign in
webkit
/
WebKit
/
3171213d84ddc1cb3289622b38ea4b8b7d089653
/
.
/
JSTests
/
stress
/
switch-constant-child-becomes-empty.js
blob: 736df17e44d70a47e0bc0ad267e70dc07515efd2 [
file
] [
log
] [
blame
]
//@ runDefault("--useConcurrentJIT=0")
function
foo
(
x
)
{
switch
(
x
)
{
case
"a"
:
case
"a"
:
case
"a"
:
for
(
let j
=
0
;
j
<
100
;
j
++)
{
let j
=
foo
(
j
);
}
default
:
return
2
;
}
}
for
(
let i
=
0
;
i
<
100000
;
i
++)
{
foo
(
"ab"
);
}