Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(client): Fix text encoding polyfill being fed numbers (#1204)
Addressing issue [raised in discord](https://discord.com/channels/933657521581858818/1231997358133477477) The `TextEncoderLite` polyfill for the TextEncoder does not coerce its input to a string, and we force cast numbers with `as string` in the encoding stage, resulting in the input being encoded as an empty bytearray. This does mean that the polyfill does not have the _exact_ same behaviour as the original (which it should), but the immediate solution is to respect types and not force cast to a string when it isn't.
- Loading branch information