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

Make Executable::run return a JsResult<CompletionRecord> #1543

Closed
jedel1043 opened this issue Aug 31, 2021 · 1 comment
Closed

Make Executable::run return a JsResult<CompletionRecord> #1543

jedel1043 opened this issue Aug 31, 2021 · 1 comment
Labels
ast Issue surrounding the abstract syntax tree enhancement New feature or request execution Issues or PRs related to code execution

Comments

@jedel1043
Copy link
Member

jedel1043 commented Aug 31, 2021

Related discussion on #1541.

Follows from #1542.

For starters we can just always pass a CompletionRecord with a [[value]] equal to the value returned by every node evaluation, as all nodes return a JsValue with few exceptions like Throw.

This feature is being developed in the https://github.com/boa-dev/boa/tree/feature/completion_records branch.

@jedel1043 jedel1043 added enhancement New feature or request execution Issues or PRs related to code execution ast Issue surrounding the abstract syntax tree labels Aug 31, 2021
@jedel1043
Copy link
Member Author

Closing in favour of the current implementation. We can revisit this if we reassess that a more spec-compliant design is required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ast Issue surrounding the abstract syntax tree enhancement New feature or request execution Issues or PRs related to code execution
Projects
None yet
Development

No branches or pull requests

1 participant