Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement early returns #101

Closed
jasonwilliams opened this issue Sep 8, 2019 · 0 comments
Closed

implement early returns #101

jasonwilliams opened this issue Sep 8, 2019 · 0 comments
Labels
bug Something isn't working Hacktoberfest Hacktoberfest 2021 - https://hacktoberfest.digitalocean.com
Milestone

Comments

@jasonwilliams
Copy link
Member

jasonwilliams commented Sep 8, 2019

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

@jasonwilliams jasonwilliams added bug Something isn't working Hacktoberfest Hacktoberfest 2021 - https://hacktoberfest.digitalocean.com labels Sep 8, 2019
@jasonwilliams jasonwilliams added this to the v0.4.0 milestone Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Hacktoberfest Hacktoberfest 2021 - https://hacktoberfest.digitalocean.com
Projects
None yet
Development

No branches or pull requests

1 participant