mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-16 08:18:59 +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", .{
|
log.warn(.js, "eval script", .{
|
||||||
.url = url,
|
.url = url,
|
||||||
.err = msg,
|
.err = msg,
|
||||||
|
.stack = try_catch.stack(page.call_arena) catch null,
|
||||||
|
.line = try_catch.sourceLineNumber() orelse 0,
|
||||||
.cacheable = cacheable,
|
.cacheable = cacheable,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user