MajeedKazemi / blocks-to-code-old

Other
1 stars 0 forks source link

preventing infinite loops #7

Open user-74 opened 2 years ago

user-74 commented 2 years ago

after code generation and before execution, we should inject some code that detects whether an infinite loop has been created, e.g. a max number of iterations/recursions, so we can break out of them and prevent the tab from crashing.

The repeat until / while blocks is the main point of concern here.

MajeedKazemi commented 2 years ago

Good catch, @user-74 . this is important to do as well. and injecting code (max number of iteration) is the way to go.