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

Investigate optional Javascript support #84

Open
crankycyclops opened this issue Mar 5, 2022 · 1 comment
Open

Investigate optional Javascript support #84

crankycyclops opened this issue Mar 5, 2022 · 1 comment
Assignees
Labels

Comments

@crankycyclops
Copy link
Owner

Just as I support external Lua scripts, so too would I like to explore optionally turned on support for Javascript using the V8 engine. See: https://v8.dev/docs/embed

@crankycyclops crankycyclops self-assigned this Mar 5, 2022
@crankycyclops
Copy link
Owner Author

For embedded Javascript, I should have one shared v8::Isolate per game, but it should not actually be initialized until it's needed. So, when a script is being parsed, if it's the first time, an Isolate will be setup. Otherwise, it won't. This will save space for game that don't use Javascript, even if they support it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant