We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b443feb commit a912a04Copy full SHA for a912a04
npm-packages/udf-runtime/src/08_text_encoding.ts
@@ -108,7 +108,7 @@ class TextDecoder {
108
}
109
110
function atob(encoded: string): string {
111
- const { decoded, error } = performOp("atob", encoded);
+ const { decoded, error } = performOp("atob", String(encoded));
112
if (error) {
113
throw new DOMException(
114
`Failed to execute 'atob': ${error}`,
@@ -119,7 +119,7 @@ function atob(encoded: string): string {
119
120
121
function btoa(text: string): string {
122
- const { encoded, error } = performOp("btoa", text);
+ const { encoded, error } = performOp("btoa", String(text));
123
124
125
`Failed to execute 'btoa': ${error}`,
0 commit comments