Skip to content

Conversation

@sagudev
Copy link
Member

@sagudev sagudev commented Dec 25, 2025

This PR adds support for using new JSContext/CurrentRealm to promise and adds some more helpers that will ease migration to new context model. Second commit has another demo.

Testing: Covered by WPT
Part of #40600

@sagudev sagudev requested a review from gterzian as a code owner December 25, 2025 09:17
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Dec 25, 2025
@sagudev sagudev mentioned this pull request Dec 25, 2025
1 task
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
@sagudev sagudev requested review from jdm and removed request for gterzian December 26, 2025 06:38
Copy link
Member

@jdm jdm left a comment

Choose a reason for hiding this comment

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

Nice.

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Dec 27, 2025
@jdm jdm added this pull request to the merge queue Dec 27, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Dec 27, 2025
Merged via the queue into servo:main with commit 600accb Dec 27, 2025
29 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Dec 27, 2025
github-merge-queue bot pushed a commit that referenced this pull request Dec 27, 2025
Continuation of #41520 to use more safe cx in promises, now by passing
&mut CurrentRealm in callbacks. Most callback implementations still do
conversions to old SafeJSContext, so there are some low hanging stuff
for follow ups.


Testing: Should be covered by existing WPT tests.
try run: https://github.com/sagudev/servo/actions/runs/20540030020
Part of #40600

---------

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
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