Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for not calling well-known symbols on primitives for string methods #4404

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

lucacasonato
Copy link
Member

@lucacasonato lucacasonato requested a review from a team as a code owner February 18, 2025 21:33
Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

generally seems good overall

@lucacasonato lucacasonato requested a review from ljharb February 18, 2025 22:17
Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

for Symbol.match, what about new RegExp?

@lucacasonato
Copy link
Member Author

The normative PR does not change the behaviour of the regexp constructor. It already only gets %Symbol.match% for objects (see https://tc39.es/ecma262/#sec-isregexp).

@ljharb
Copy link
Member

ljharb commented Feb 18, 2025

aha, then the normative PR has an even stronger case in favor of it :-)

@Ms2ger Ms2ger changed the title Add tests for not calling WK symbols on primitives for string methods Add tests for not calling well-known symbols on primitives for string methods Feb 19, 2025
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