* Encode a string to UTF8 array.
(input: string)
| 74 | * Encode a string to UTF8 array. |
| 75 | */ |
| 76 | function encodeUTF8(input: string): Uint8Array { |
| 77 | const carrier = getSentryCarrier(GLOBAL_OBJ); |
| 78 | return carrier.encodePolyfill ? carrier.encodePolyfill(input) : new TextEncoder().encode(input); |
| 79 | } |
| 80 | |
| 81 | /** |
| 82 | * Decode a UTF8 array to string. |
no test coverage detected