hedyorg / hedy

Hedy is a gradual programming language to teach children programming. Gradual languages use different language levels, where each level adds new concepts and syntactic complexity. At the end of the Hedy level sequence, kids master a subset of syntactically valid Python.
https://www.hedy.org
European Union Public License 1.2
1.26k stars 282 forks source link

🪲 Fix stop program being shown indefinitely #5560

Closed jpelay closed 1 month ago

jpelay commented 1 month ago

The problem was that we were trying to use the theGlobalDebugger variable while it was undefined. By using the ? operator of typescript we guarantee that we won't be trying to call a method if the object is null.

Fixes #5555

How to test

I added a Cypress test., but also you can try running programs and see if the button works normally again!

mergify[bot] commented 1 month ago

Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork).

mergify[bot] commented 1 month ago

Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork).