WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@Hans-Halverson
Copy link
Owner

@Hans-Halverson Hans-Halverson commented Jul 12, 2025

Summary

Implement the normative change in tc39/ecma262#3009 where well-known Symbol methods for RegExps are no longer called on primitive values in String.prototype.{match, matchAll, replace, replaceAll, search, split}. These methods now verify that the target value is a object before looking for methods instead of just checking that the target value is non-nullish.

Tests

test262 tests for this case now pass.

@Hans-Halverson Hans-Halverson merged commit 860519f into master Jul 12, 2025
6 checks passed
@Hans-Halverson Hans-Halverson deleted the no-well-known-call-on-primitives branch July 12, 2025 20:02
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