AK: Remove some now-unnecessary workarounds for simdutf base64 usage

This commit is contained in:
Timothy Flynn 2025-06-01 06:58:47 -04:00 committed by Tim Flynn
commit 5e40db5a17
Notes: github-actions[bot] 2025-06-01 12:04:06 +00:00
3 changed files with 4 additions and 9 deletions

View file

@ -40,7 +40,7 @@ describe("errors", () => {
test("invalid padding", () => {
expect(() => {
Uint8Array.fromBase64("Zm9v=", { lastChunkHandling: "strict" });
}).toThrowWithMessage(SyntaxError, "Invalid trailing data");
}).toThrowWithMessage(SyntaxError, "Invalid base64 character");
expect(() => {
Uint8Array.fromBase64("Zm9vaa=", { lastChunkHandling: "strict" });

View file

@ -79,7 +79,7 @@ describe("errors", () => {
test("invalid padding", () => {
expect(() => {
new Uint8Array(10).setFromBase64("Zm9v=", { lastChunkHandling: "strict" });
}).toThrowWithMessage(SyntaxError, "Invalid trailing data");
}).toThrowWithMessage(SyntaxError, "Invalid base64 character");
expect(() => {
new Uint8Array(10).setFromBase64("Zm9vaa=", { lastChunkHandling: "strict" });