Skip to content

webdriver: use IsArgumentsObject instead of a hand-rolled arguments check - #47514

Merged
jdm merged 1 commit into
servo:mainfrom
Lfan-ke:webdriver-isargumentsobject
Aug 25, 2026
Merged

jdm merged 1 commit into
servo:mainfrom
Lfan-ke:webdriver-isargumentsobject

Conversation

@Lfan-ke

@Lfan-ke Lfan-ke commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Replaces the hand-rolled [object Arguments] string comparison in is_arguments_object with the IsArgumentsObject wrapper from mozjs, as suggested in the issue.

No behaviour change is expected, so the existing tests/wpt tests/webdriver/classic tests should be unaffected and no new tests are added.

Fixes #47448

…heck

Signed-off-by: Leo Cheng <chengkelfan@qq.com>
@Lfan-ke
Lfan-ke requested a review from gterzian as a code owner August 25, 2026 13:24
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 25, 2026

@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 great! Thanks!

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Aug 25, 2026
@jdm
jdm enabled auto-merge August 25, 2026 13:40
@Lfan-ke

Lfan-ke commented Aug 25, 2026 via email

Copy link
Copy Markdown
Contributor Author

@jdm
jdm added this pull request to the merge queue Aug 25, 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 Aug 25, 2026
Merged via the queue into servo:main with commit 5b05da3 Aug 25, 2026
36 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 Aug 25, 2026
RichardTjokroutomo pushed a commit to RichardTjokroutomo/servo that referenced this pull request Oct 6, 2026
…heck (servo#47514)

Replaces the hand-rolled `[object Arguments]` string comparison in
`is_arguments_object` with the `IsArgumentsObject` wrapper from mozjs,
as suggested in the issue.

No behaviour change is expected, so the existing `tests/wpt
tests/webdriver/classic` tests should be unaffected and no new tests are
added.

Fixes servo#47448

Signed-off-by: Leo Cheng <chengkelfan@qq.com>
Psychpsyo pushed a commit to Psychpsyo/servo that referenced this pull request Oct 12, 2026
…heck (servo#47514)

Replaces the hand-rolled `[object Arguments]` string comparison in
`is_arguments_object` with the `IsArgumentsObject` wrapper from mozjs,
as suggested in the issue.

No behaviour change is expected, so the existing `tests/wpt
tests/webdriver/classic` tests should be unaffected and no new tests are
added.

Fixes servo#47448

Signed-off-by: Leo Cheng <chengkelfan@qq.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.

Use JS::IsArgumentsObject in webdriver code

3 participants