Skip to content

Add safe conversion#699

Merged
sagudev merged 3 commits intoservo:mainfrom
sagudev:more-safe-cx-reduced
Jan 17, 2026
Merged

Add safe conversion#699
sagudev merged 3 commits intoservo:mainfrom
sagudev:more-safe-cx-reduced

Conversation

@sagudev
Copy link
Copy Markdown
Member

@sagudev sagudev commented Jan 16, 2026

Added safe_* to conversion traits with default impl that fallbacks to unsafe versions.

I made some actual safe impl here, but it was a lot and we need to fix many more stuff for it to make the really safe: https://github.com/sagudev/mozjs/tree/more-safe-cx

Testing: Covered by existing tests

@sagudev sagudev requested a review from jdm January 16, 2026 14:17
@sagudev sagudev force-pushed the more-safe-cx-reduced branch from 01a26a5 to 41c875a Compare January 17, 2026 09:47
@sagudev sagudev enabled auto-merge January 17, 2026 09:48
@sagudev sagudev added this pull request to the merge queue Jan 17, 2026
Merged via the queue into servo:main with commit 547707b Jan 17, 2026
36 checks passed
github-merge-queue bot pushed a commit to servo/servo that referenced this pull request Jan 18, 2026
…s artifacts (#41971)

This bump includes
some new safe wrappers: servo/mozjs#699
servo/mozjs#700
debugmozjs artifacts: servo/mozjs#544
rooted macros with vectors: servo/mozjs#697

Testing: Done in mozjs repo.

Signed-off-by: sagudev <[email protected]>
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.

2 participants