Skip to content

Commit

Permalink
resolver: fix debug mode crash in test/bundler/bun-build-api.test.ts (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro authored Feb 28, 2024
1 parent c54844b commit 331d079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolver/resolver.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,7 @@ pub const Resolver = struct {
pub fn bustDirCache(r: *ThisResolver, path: string) bool {
dev("Bust {s}", .{path});
if (Environment.allow_assert) {
if (path[path.len - 1] != std.fs.path.sep) {
if (path[path.len - 1] != '/') {
std.debug.panic("Expected a trailing slash on {s}", .{path});
}
}
Expand Down

0 comments on commit 331d079

Please sign in to comment.