From f45bb87aefaf2c6c3a4991f6e30a81c227ae83c0 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Wed, 14 Feb 2024 12:32:43 -0500 Subject: [PATCH] Enforce string is passed to toUtf8Bytes (#4583). --- src.ts/utils/utf8.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src.ts/utils/utf8.ts b/src.ts/utils/utf8.ts index 0e893cd98c..7706c5b1ac 100644 --- a/src.ts/utils/utf8.ts +++ b/src.ts/utils/utf8.ts @@ -247,6 +247,7 @@ function getUtf8CodePoints(_bytes: BytesLike, onError?: Utf8ErrorFunc): Array