Add stack & line number to script eval failure

This commit is contained in:
Karl Seguin
2025-12-03 18:53:25 +08:00
parent 2a4cbbe569
commit 74ffc273ef

View File

@@ -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,
});