diff options
Diffstat (limited to 'test/js')
-rw-r--r-- | test/js/bun/http/serve.test.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/js/bun/http/serve.test.ts b/test/js/bun/http/serve.test.ts index 8bae503b4..c9fd47475 100644 --- a/test/js/bun/http/serve.test.ts +++ b/test/js/bun/http/serve.test.ts @@ -1207,3 +1207,8 @@ it("#5859 json", async () => { expect(await response.text()).toBe("FAIL"); await server.stop(true); }); + +it("#5859 arrayBuffer", async () => { + await Bun.write("/tmp/bad", new Uint8Array([0xfd])); + expect(async () => await Bun.file("/tmp/bad").json()).toThrow(); +}); |