aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/node
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-15 17:52:04 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-15 17:52:04 -0800
commit934360646fd063a84c6527eea059dc40ae0050bb (patch)
tree41d17932e07fd3230ab924b102079d84ee0403e3 /src/bun.js/node
parent98df9d7703708cc7351563b9500d6a337003c3eb (diff)
downloadbun-u/vjpr/zig-0.10.tar.gz
bun-u/vjpr/zig-0.10.tar.zst
bun-u/vjpr/zig-0.10.zip
Diffstat (limited to 'src/bun.js/node')
-rw-r--r--src/bun.js/node/types.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bun.js/node/types.zig b/src/bun.js/node/types.zig
index bb7ef85ca..89d466c4e 100644
--- a/src/bun.js/node/types.zig
+++ b/src/bun.js/node/types.zig
@@ -1564,7 +1564,7 @@ pub const Path = struct {
if (name_.isEmpty()) {
return JSC.ZigString.Empty.toValue(globalThis);
}
- const out = std.fmt.allocPrint(allocator, "{any}{any}", .{ name_, ext }) catch unreachable;
+ const out = std.fmt.allocPrint(allocator, "{s}{s}", .{ name_, ext }) catch unreachable;
defer allocator.free(out);
return JSC.ZigString.init(out).withEncoding().toValueGC(globalThis);
@@ -1573,13 +1573,13 @@ pub const Path = struct {
if (insert_separator) {
const separator = if (!isWindows) "/" else "\\";
if (name_with_ext.isEmpty()) {
- const out = std.fmt.allocPrint(allocator, "{}{any}{}{}", .{ dir, separator, name_, ext }) catch unreachable;
+ const out = std.fmt.allocPrint(allocator, "{}{s}{}{}", .{ dir, separator, name_, ext }) catch unreachable;
defer allocator.free(out);
return JSC.ZigString.init(out).withEncoding().toValueGC(globalThis);
}
{
- const out = std.fmt.allocPrint(allocator, "{}{any}{}", .{
+ const out = std.fmt.allocPrint(allocator, "{}{s}{}", .{
dir,
separator,
name_with_ext,