mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 04:49:06 +00:00
Upgrade SIMDUTF, 8x faster atob (#11085)
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user