-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
feat: support callback function in eval #778
Conversation
I think we can expose another method called |
I was expected to pass It'd be best to wrap a try...catch... clause at the top level of the script if you anticipate that exceptions could occur and you want to handle it. |
Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <yuweiwu@pm.me>
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
Checklist
fix: remove a typo, closes #___, #___
)Other information
This a draft for resolving issue #474. The API should expose to external after most of major platforms are implemented.
evaluate_script
should be like| val: String | { ... }
.JSON string
and pass it to the callback.Issues