implement early returns #101
Labels
bug
Something isn't working
Hacktoberfest
Hacktoberfest 2021 - https://hacktoberfest.digitalocean.com
Milestone
The way functions are implemented are as blocks (arrays of expressions the executor works through).
If return happens we want to stop at this point and return the value.
Currently this doesn't happen:
https://github.com/jasonwilliams/boa/blob/master/src/lib/exec.rs#L61-L70
Arises from: jasonwilliams#57
The text was updated successfully, but these errors were encountered: