Skip to content

Conversation

karlseguin
Copy link
Collaborator

There's always going to be ambiguity between a string and a Uint8Array. We already had TypedArray(u8) as a discriminator when returning values. But now the type is also used by mapping JS values to Zig. To support this efficiently when probing the union, the typed array mapping logic was extracted into its own function (so that it can be used by the probe).

There's always going to be ambiguity between a string and a Uint8Array. We
already had TypedArray(u8) as a discriminator when _returning_ values. But now
the type is also used by mapping JS values to Zig. To support this efficiently
when probing the union, the typed array mapping logic was extracted into its
own function (so that it can be used by the probe).
@karlseguin karlseguin force-pushed the readable_stream_uint8array branch from 3bdbddc to 2ecf901 Compare September 30, 2025 08:33
@karlseguin karlseguin merged commit 651521d into main Sep 30, 2025
10 checks passed
@karlseguin karlseguin deleted the readable_stream_uint8array branch September 30, 2025 11:03
@github-actions github-actions bot locked and limited conversation to collaborators Sep 30, 2025
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.

1 participant