aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bun.js/node/types.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/node/types.zig b/src/bun.js/node/types.zig
index bc2144095..23d693d69 100644
--- a/src/bun.js/node/types.zig
+++ b/src/bun.js/node/types.zig
@@ -1782,7 +1782,7 @@ pub const Path = struct {
else
@This().dirnamePosix(base_slice);
- return JSC.ZigString.init(out).toValueGC(globalThis);
+ return JSC.ZigString.init(out).withEncoding().toValueGC(globalThis);
}
pub fn extname(globalThis: *JSC.JSGlobalObject, _: bool, args_ptr: [*]JSC.JSValue, args_len: u16) callconv(.C) JSC.JSValue {
if (comptime is_bindgen) return JSC.JSValue.jsUndefined();