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

Add Example to Execute a Function of a Script File #1357

Merged
merged 2 commits into from Jul 22, 2021

Conversation

schrieveslaach
Copy link
Contributor

This commit adds an example code snippet that demonstrates the usage of Boa when someone wants to execute a simple function that should be embedded into an application that support scripting extensions.

For example, extension through scripting is considered in aixigo/PREvant#41

@schrieveslaach
Copy link
Contributor Author

There were some formatting issues. I fixed them and updated the PR.

boa/src/context.rs Outdated Show resolved Hide resolved
@HalidOdat HalidOdat added the documentation update documentation label Jun 24, 2021
@HalidOdat HalidOdat added this to the v0.13.0 milestone Jun 24, 2021
This commit adds an example code snippet that demonstrates the usage of Boa
when someone wants to execute a simple function that should be embedded into
an application that support scripting extensions.
Copy link
Member

@HalidOdat HalidOdat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides the small suggestion this looks good to merge :)

boa/src/context.rs Outdated Show resolved Hide resolved
@HalidOdat HalidOdat added the execution Issues or PRs related to code execution label Jul 22, 2021
@HalidOdat HalidOdat merged commit 970a611 into boa-dev:master Jul 22, 2021
@schrieveslaach schrieveslaach deleted the script-execution-example branch July 22, 2021 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation update documentation execution Issues or PRs related to code execution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants