summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/node/polyfills/internal_binding/_utils.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/node/polyfills/internal_binding/_utils.ts b/ext/node/polyfills/internal_binding/_utils.ts
index ab174608b..00993732f 100644
--- a/ext/node/polyfills/internal_binding/_utils.ts
+++ b/ext/node/polyfills/internal_binding/_utils.ts
@@ -5,7 +5,7 @@
import {
forgivingBase64Decode,
- forgivingBase64UrlEncode,
+ forgivingBase64UrlDecode,
} from "ext:deno_web/00_infra.js";
export function asciiToBytes(str: string) {
@@ -51,7 +51,7 @@ function base64clean(str: string) {
export function base64UrlToBytes(str: string) {
str = base64clean(str);
str = str.replaceAll("+", "-").replaceAll("/", "_");
- return forgivingBase64UrlEncode(str);
+ return forgivingBase64UrlDecode(str);
}
export function hexToBytes(str: string) {