Skip to content

Conversation

@elliott-with-the-longest-name-on-github
Copy link
Contributor

@elliott-with-the-longest-name-on-github elliott-with-the-longest-name-on-github commented Oct 15, 2025

My understanding is, this nested uneval must always return a string, because:

  • It will run custom replacers, which may return string | void
  • If the custom replacers return void, it will fall back to builtins, which will return string, or
  • It will throw because nothing can serialize the object in question

@changeset-bot
Copy link

changeset-bot bot commented Oct 15, 2025

🦋 Changeset detected

Latest commit: 1d30c43

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
devalue Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Rich-Harris Rich-Harris merged commit ca3c7b6 into main Oct 15, 2025
3 checks passed
@Rich-Harris Rich-Harris deleted the elliott/remove-void-from-nested-uneval-return branch October 15, 2025 18:17
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.

3 participants