Skip to content

script: Mechanically migrate more to reflect_dom_object_with_proto - #46593

Merged
kkoyung merged 1 commit into
servo:mainfrom
TimvdLippe:migrate-mechanically-ok
Jul 17, 2026
Merged

script: Mechanically migrate more to reflect_dom_object_with_proto#46593
kkoyung merged 1 commit into
servo:mainfrom
TimvdLippe:migrate-mechanically-ok

Conversation

@TimvdLippe

Copy link
Copy Markdown
Contributor

As a cleanup follow-up to the migration to pass &mut JSContext, this PR is the result of applying the following regex replacement to the codebase:

Before:

Ok\(reflect_dom_object_with_proto_and_cx\((([^<]|\n)+),\n\s+?cx,\n\s+?\)\)

After:

Ok(reflect_dom_object_with_proto(cx, $1))

Part of #40600

Testing: it compiles

@TimvdLippe
TimvdLippe requested a review from gterzian as a code owner July 17, 2026 14:42
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 17, 2026
As a cleanup follow-up to the migration to pass `&mut JSContext`, this
PR is the result of applying the following regex replacement to the
codebase:

Before:

```
Ok\(reflect_dom_object_with_proto_and_cx\((([^<]|\n)+),\n\s+?cx,\n\s+?\)\)
```

After:

```
Ok(reflect_dom_object_with_proto(cx, $1))
```

Part of servo#40600

Testing: it compiles
Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
@TimvdLippe
TimvdLippe force-pushed the migrate-mechanically-ok branch from 94ae185 to 44ec20e Compare July 17, 2026 14:43

@Narfinger Narfinger 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.

If it compiles it works. My favorite mantra.

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Jul 17, 2026
@kkoyung
kkoyung added this pull request to the merge queue Jul 17, 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 Jul 17, 2026
Merged via the queue into servo:main with commit 4a0b2b1 Jul 17, 2026
31 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 Jul 17, 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.

4 participants