Sign in
webkit
/
WebKit
/
53c0a6bd89204da525ab0ecc516f8067861dc602
/
.
/
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"
);
}