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

Stop calling back into C to raise exceptions #18

Merged
merged 1 commit into from
Apr 15, 2022
Merged

Conversation

jordemort
Copy link
Contributor

Instead, Eval and ExecFile now return a StarlarkReturn struct, which exception information is parsed out of.

I've also dropped the undocumented _raw parameter and the additional JSON serialization; if you want to verify the type of the return value you can just use instanceof and friends, and dropping the intermediate JSON encode/decode should spare some CPU cycles.

Instead, Eval and ExecFile now return a StarlarkReturn struct, which
exception information is parsed out of.
@jordemort jordemort merged commit efb168a into main Apr 15, 2022
@jordemort jordemort deleted the struct-passing branch April 15, 2022 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant