diff options
author | 2023-04-17 20:07:08 -0700 | |
---|---|---|
committer | 2023-04-17 20:07:08 -0700 | |
commit | 9e1745ee1f5844e6ab89135e776552d2ad1ad684 (patch) | |
tree | 133981a2dbfb1cc7fe4b566f198cb8dd87c83921 /src | |
parent | 05cb5bb659a7213fc94c67d5836a9f9fb1517a30 (diff) | |
download | bun-9e1745ee1f5844e6ab89135e776552d2ad1ad684.tar.gz bun-9e1745ee1f5844e6ab89135e776552d2ad1ad684.tar.zst bun-9e1745ee1f5844e6ab89135e776552d2ad1ad684.zip |
Fixes #2676
Diffstat (limited to 'src')
-rw-r--r-- | src/bun.js/node/types.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bun.js/node/types.zig b/src/bun.js/node/types.zig index 6bee1243f..2dcbad38f 100644 --- a/src/bun.js/node/types.zig +++ b/src/bun.js/node/types.zig @@ -1556,9 +1556,9 @@ pub const Path = struct { const base_slice = path.slice(); const out = if (isWindows) - std.fs.path.dirnameWindows(base_slice) orelse "C:\\" + std.fs.path.dirnameWindows(base_slice) orelse "." else - std.fs.path.dirnamePosix(base_slice) orelse "/"; + std.fs.path.dirnamePosix(base_slice) orelse "."; return JSC.ZigString.init(out).toValueGC(globalThis); } |