This commit is contained in:
Karl Seguin
2026-01-23 12:11:09 +08:00
parent 6d23d91aa5
commit 67cff5af8b
2 changed files with 6 additions and 5 deletions

View File

@@ -872,7 +872,7 @@ pub fn startHeapProfiler(self: *Context) void {
self.heap_profiler = heap_profiler;
}
pub fn stopHeapProfiler(self: *Context) !struct{[]const u8, []const u8} {
pub fn stopHeapProfiler(self: *Context) !struct { []const u8, []const u8 } {
var ls: js.Local.Scope = undefined;
self.localScope(&ls);
defer ls.deinit();
@@ -893,5 +893,5 @@ pub fn stopHeapProfiler(self: *Context) !struct{[]const u8, []const u8} {
break :blk try ls.local.jsStringToZig(string_handle, .{});
};
return .{allocating, snapshot};
return .{ allocating, snapshot };
}

View File

@@ -103,15 +103,16 @@ fn report(reason: []const u8, begin_addr: usize) !void {
// overwrite the last character with our null terminator, safest since
// our buffer could be full at this point
written[written.len] = 0;
break :blk written[0..written.len + 1];
break :blk written[0 .. written.len + 1];
};
var argv = [_:null]?[*:0]const u8{
curl_path[0..curl_path_len :0],
"-fsSL",
"-H", "Content-Type: application/octet-stream",
"-H",
"Content-Type: application/octet-stream",
"--data-binary",
stack[0..stack.len - 1 : 0],
stack[0 .. stack.len - 1 :0],
url[0 .. url.len - 1 :0],
};