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 JSContext wrapper for bindings with fewer raw pointers. #554

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jdm
Copy link
Member

@jdm jdm commented Feb 10, 2025

This adapts the JSContext type from Servo's bindings, making it more reliable because we can associate it directly with the underlying runtime wrapper.

This wrapper will enable us in the future to remove the unsafety from traits like ToJSValConvertible and FromJSValConvertible, as well as introduce higher-level wrappers of the JSAPI that do not require using unsafe.

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