Upgrade SIMDUTF, 8x faster atob (#11085)

This commit is contained in:
Jarred Sumner
2024-05-15 03:42:36 -07:00
committed by GitHub
parent 5389c7ab40
commit b5dff55ef3
8 changed files with 6587 additions and 862 deletions

View File

@@ -1,12 +1,7 @@
import { expect, it } from "bun:test";
function expectInvalidCharacters(val) {
try {
atob(val);
throw new Error("Expected error");
} catch (error) {
expect(error.message).toBe("The string contains invalid characters.");
}
expect(() => atob(val)).toThrow("The string contains invalid characters.");
}
it("atob", () => {