Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Conversation

@jrolfs
Copy link
Member

@jrolfs jrolfs commented Sep 22, 2022

Our types incorrectly claimed support for function TextMatch. This change actually adds support for that.

@jrolfs jrolfs requested review from gajus and sebinsua September 22, 2022 01:52
@jrolfs jrolfs enabled auto-merge (rebase) September 22, 2022 01:53
@@ -1,5 +1,6 @@
const replacer = (_: string, value: unknown) => {
if (value instanceof RegExp) return `__REGEXP ${value.toString()}`
if (typeof value === 'function') return `__FUNCTION ${value.toString()}`
Copy link
Collaborator

Choose a reason for hiding this comment

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

As a follow-up, we should probably document that this won't work for closures.

Playwright dropped support for Node 12 in a non-breaking release, but
it's leaving LTS soon anyways.
@jrolfs jrolfs force-pushed the fix/support-function-text-match branch from cfb59d4 to 480ce66 Compare September 22, 2022 22:07
@jrolfs jrolfs merged commit 4ecf17d into main Sep 22, 2022
@jrolfs jrolfs deleted the fix/support-function-text-match branch September 22, 2022 23:16
@github-actions
Copy link

🎉 This PR is included in version 4.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants