Skip to content

Comments

修复 break continue 导致死循环以及嵌套异常问题#130

Open
DQinYuan wants to merge 5 commits intoalibaba:branch_version_3.x.xfrom
DQinYuan:fix-continue-break-endless-loop
Open

修复 break continue 导致死循环以及嵌套异常问题#130
DQinYuan wants to merge 5 commits intoalibaba:branch_version_3.x.xfrom
DQinYuan:fix-continue-break-endless-loop

Conversation

@DQinYuan
Copy link
Collaborator

@DQinYuan DQinYuan commented Mar 14, 2021

修复 issue #135

break 和 continue 关键字在下面两种情况下会出现死循环:

for (i=1;i<10;i++){
    continue
}
for (i=1;i<10;i++){
    break
}

qlexpress 对 continue 和 break 的实现存在 bug,必须要将 break 或者 continue 放在 if 中使用才可以,否则会出现死循环,改 pr 将修复这个问题。

@DQinYuan DQinYuan changed the title 修复 break continue 导致死循环的问题 修复 break continue 导致死循环以及嵌套异常问题 Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant