Skip to content

script_bindings: Port call_setup to use &mut JSContext#44626

Merged
jdm merged 1 commit into
servo:mainfrom
Gae24:call-setup-cx
Apr 30, 2026
Merged

script_bindings: Port call_setup to use &mut JSContext#44626
jdm merged 1 commit into
servo:mainfrom
Gae24:call-setup-cx

Conversation

@Gae24

@Gae24 Gae24 commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Callback methods have now access to &mut JSContext, an additional temp_cx was needed for XPath trait.

Testing: It compiles
Part of #42638

@Gae24 Gae24 requested a review from gterzian as a code owner April 30, 2026 09:03
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Apr 30, 2026
@Gae24 Gae24 requested a review from jdm April 30, 2026 09:04

@TimvdLippe TimvdLippe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Love to see this! For xpath you send a follow-up PR?

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Apr 30, 2026
@TimvdLippe TimvdLippe added this pull request to the merge queue Apr 30, 2026
@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 Apr 30, 2026
@Gae24 Gae24 removed this pull request from the merge queue due to a manual request Apr 30, 2026
@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 Apr 30, 2026
@Gae24

Gae24 commented Apr 30, 2026

Copy link
Copy Markdown
Contributor Author

I think @jdm wanted to review it, otherwise we can go ahead.

@TimvdLippe

Copy link
Copy Markdown
Contributor

Let's wait on Josh in that case.

@Gae24

Gae24 commented Apr 30, 2026

Copy link
Copy Markdown
Contributor Author

Love to see this! For xpath you send a follow-up PR?

I think it's the same of #42839, not sure how much effort it will require passing it around.

@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Apr 30, 2026
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>

@jdm jdm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks like what I expected! Thanks!

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Apr 30, 2026
@jdm jdm added this pull request to the merge queue Apr 30, 2026
@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 Apr 30, 2026
Merged via the queue into servo:main with commit 7888270 Apr 30, 2026
30 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 Apr 30, 2026
@Gae24 Gae24 deleted the call-setup-cx branch May 7, 2026 08:26
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.

4 participants