From 0f2a79b9c1a5b0142f8099e94712799607e8990f Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Fri, 26 May 2023 03:32:28 -0700 Subject: Fix crash in test.todo + remove JSC C API usages in bun:test (#3079) * Fix crash in test.todo * remove usages of JSC C API in bun:test * Remove additional JSC-C API usages * fix `make headers` * URLSearchParams.length * FormData length * URLSearchParams length * Fix `make headers` * very fancy length * Fix bug with exceptions being ignored sometimes * Add tests for extension toHaveLength --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> --- src/bun.js/api/filesystem_router.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bun.js/api/filesystem_router.zig') diff --git a/src/bun.js/api/filesystem_router.zig b/src/bun.js/api/filesystem_router.zig index ec95ec373..d926ca7b3 100644 --- a/src/bun.js/api/filesystem_router.zig +++ b/src/bun.js/api/filesystem_router.zig @@ -233,7 +233,7 @@ pub const FileSystemRouter = struct { globalThis.allocator().destroy(arena); return null; } - if (val.getLengthOfArray(globalThis) == 0) continue; + if (val.getLength(globalThis) == 0) continue; extensions.appendAssumeCapacity((val.toSlice(globalThis, allocator).clone(allocator) catch unreachable).slice()[1..]); } } -- cgit v1.2.3