fix corner case in switches (#5013)

fixes #5012
This commit is contained in:
Alex Lam S.L
2021-06-15 16:51:53 +01:00
committed by GitHub
parent 21fc8f4630
commit 7880568d15
3 changed files with 55 additions and 31 deletions

View File

@@ -3075,7 +3075,7 @@ issue_4237_2: {
console.log(function(a) {
do {
switch (0) {
case 0:
default:
var b = a++;
if (b)
return "FAIL";