aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/api/filesystem_router.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2023-05-26 03:32:28 -0700
committerGravatar GitHub <noreply@github.com> 2023-05-26 03:32:28 -0700
commit0f2a79b9c1a5b0142f8099e94712799607e8990f (patch)
tree99077706398898df3abda3a9a45a9abc0093e8fc /src/bun.js/api/filesystem_router.zig
parent62f05ec1037009cc1724674277df82f1a9ec75ab (diff)
downloadbun-0f2a79b9c1a5b0142f8099e94712799607e8990f.tar.gz
bun-0f2a79b9c1a5b0142f8099e94712799607e8990f.tar.zst
bun-0f2a79b9c1a5b0142f8099e94712799607e8990f.zip
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>
Diffstat (limited to 'src/bun.js/api/filesystem_router.zig')
-rw-r--r--src/bun.js/api/filesystem_router.zig2
1 files changed, 1 insertions, 1 deletions
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..]);
}
}