mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 22:53:28 +00:00
Merge pull request #781 from lightpanda-io/null-scriptname
Some checks failed
e2e-test / zig build release (push) Has been cancelled
e2e-test / puppeteer-perf (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
e2e-test / cdp-and-hyperfine-bench (push) Has been cancelled
e2e-test / perf-fmt (push) Has been cancelled
zig-test / zig build dev (push) Has been cancelled
zig-test / browser fetch (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
nightly build / build-linux-x86_64 (push) Has been cancelled
nightly build / build-linux-aarch64 (push) Has been cancelled
nightly build / build-macos-aarch64 (push) Has been cancelled
nightly build / build-macos-x86_64 (push) Has been cancelled
wpt / web platform tests json output (push) Has been cancelled
wpt / perf-fmt (push) Has been cancelled
Some checks failed
e2e-test / zig build release (push) Has been cancelled
e2e-test / puppeteer-perf (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
e2e-test / cdp-and-hyperfine-bench (push) Has been cancelled
e2e-test / perf-fmt (push) Has been cancelled
zig-test / zig build dev (push) Has been cancelled
zig-test / browser fetch (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
nightly build / build-linux-x86_64 (push) Has been cancelled
nightly build / build-linux-aarch64 (push) Has been cancelled
nightly build / build-macos-aarch64 (push) Has been cancelled
nightly build / build-macos-x86_64 (push) Has been cancelled
wpt / web platform tests json output (push) Has been cancelled
wpt / perf-fmt (push) Has been cancelled
handle null scriptname in stacktrace
This commit is contained in:
@@ -13,8 +13,8 @@
|
|||||||
.hash = "tigerbeetle_io-0.0.0-ViLgxpyRBAB5BMfIcj3KMXfbJzwARs9uSl8aRy2OXULd",
|
.hash = "tigerbeetle_io-0.0.0-ViLgxpyRBAB5BMfIcj3KMXfbJzwARs9uSl8aRy2OXULd",
|
||||||
},
|
},
|
||||||
.v8 = .{
|
.v8 = .{
|
||||||
.url = "https://github.com/lightpanda-io/zig-v8-fork/archive/faab44996a5cb74c71592bda404208fde4bf2e63.tar.gz",
|
.url = "https://github.com/lightpanda-io/zig-v8-fork/archive/1d25fcf3ced688adca3c7a95a138771e4ebba692.tar.gz",
|
||||||
.hash = "v8-0.0.0-xddH6xWyAwB_NFICSO4Q3O-c7gDKnYiwky5FhQzTZMIr",
|
.hash = "v8-0.0.0-xddH61eyAwDICIkLAkfQcxsX4TMCKY80QiSUgNBQqx-u",
|
||||||
},
|
},
|
||||||
//.v8 = .{ .path = "../zig-v8-fork" },
|
//.v8 = .{ .path = "../zig-v8-fork" },
|
||||||
//.tigerbeetle_io = .{ .path = "../tigerbeetle-io" },
|
//.tigerbeetle_io = .{ .path = "../tigerbeetle-io" },
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ pub const Interfaces = .{
|
|||||||
// allocatorate data, I should be able to retrieve the scheme + the following `:`
|
// allocatorate data, I should be able to retrieve the scheme + the following `:`
|
||||||
// from rawuri.
|
// from rawuri.
|
||||||
//
|
//
|
||||||
// 2. The other way would bu to copy the `std.Uri` code to ahve a dedicated
|
// 2. The other way would be to copy the `std.Uri` code to have a dedicated
|
||||||
// parser including the characters we want for the web API.
|
// parser including the characters we want for the web API.
|
||||||
pub const URL = struct {
|
pub const URL = struct {
|
||||||
uri: std.Uri,
|
uri: std.Uri,
|
||||||
|
|||||||
@@ -3214,8 +3214,12 @@ fn stackForLogs(arena: Allocator, isolate: v8.Isolate) !?[]const u8 {
|
|||||||
|
|
||||||
for (0..frame_count) |i| {
|
for (0..frame_count) |i| {
|
||||||
const frame = stack_trace.getFrame(isolate, @intCast(i));
|
const frame = stack_trace.getFrame(isolate, @intCast(i));
|
||||||
const script = try jsStringToZig(arena, frame.getScriptName(), isolate);
|
if (frame.getScriptName()) |name| {
|
||||||
try writer.print("{s}{s}:{d}", .{ separator, script, frame.getLineNumber() });
|
const script = try jsStringToZig(arena, name, isolate);
|
||||||
|
try writer.print("{s}{s}:{d}", .{ separator, script, frame.getLineNumber() });
|
||||||
|
} else {
|
||||||
|
try writer.print("{s}<anonymous>:{d}", .{ separator, frame.getLineNumber() });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return buf.items;
|
return buf.items;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user