mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-15 15:58:57 +00:00
Add stack & line number to script eval failure
This commit is contained in:
@@ -773,6 +773,8 @@ const Script = struct {
|
||||
log.warn(.js, "eval script", .{
|
||||
.url = url,
|
||||
.err = msg,
|
||||
.stack = try_catch.stack(page.call_arena) catch null,
|
||||
.line = try_catch.sourceLineNumber() orelse 0,
|
||||
.cacheable = cacheable,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user