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

Conversation

@ljharb
Copy link
Member

@ljharb ljharb commented May 24, 2023

As written, an object can return a non-string which will be stringified, which seems to contradict the intention of the NOTE.

This change ensures that it throws if the object ToPrimitives to a non-string as well.

@ljharb ljharb requested a review from bakkot May 24, 2023 06:02
@ljharb ljharb force-pushed the GetStringForBinaryEncoding branch from 15b8223 to 9152073 Compare May 24, 2023 06:04
@bakkot
Copy link
Member

bakkot commented May 24, 2023

Works for me, though I'm not super concerned about that case coming up in real life.

@bakkot bakkot merged commit 9538fcf into main May 24, 2023
@bakkot bakkot deleted the GetStringForBinaryEncoding branch May 24, 2023 07:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants