Skip to content

Add JSContext wrapper for bindings with fewer raw pointers.#554

Closed
jdm wants to merge 1 commit intoservo:mainfrom
jdm:jscontext-anchor
Closed

Add JSContext wrapper for bindings with fewer raw pointers.#554
jdm wants to merge 1 commit intoservo:mainfrom
jdm:jscontext-anchor

Conversation

@jdm
Copy link
Copy Markdown
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.

@jdm jdm force-pushed the jscontext-anchor branch from 815d2bc to d64b5e5 Compare March 3, 2025 04:03
@sagudev
Copy link
Copy Markdown
Member

sagudev commented Jan 18, 2026

This was done in #638

@sagudev sagudev closed this Jan 18, 2026
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.

3 participants