Skip to content

Commit 89bd13b

Browse files
antonisLms24
andauthored
Add testing scope in comment
Co-authored-by: Lukas Stracke <lukas.stracke@sentry.io>
1 parent ea4c9d4 commit 89bd13b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/core/src/logs/internal.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,10 @@ function sanitizeLogAttributes(attributes: Attributes): Attributes {
256256
* Uses the native `String.prototype.toWellFormed()` when available
257257
* (Node 20+, Chrome 111+, Safari 15.4+, Firefox 119+, Hermes).
258258
* On older runtimes without native support, returns the string as-is.
259+
*
260+
* Exported for testing
259261
*/
260-
export function _INTERNAL_removeLoneSurrogates(str: string): string {
262+
export function _removeLoneSurrogates(str: string): string {
261263
// isWellFormed/toWellFormed are ES2024 (not in our TS lib target), so we feature-detect via Object().
262264
const strObj: Record<string, Function> = Object(str);
263265
const isWellFormed = strObj['isWellFormed'];

0 commit comments

Comments
 (0)