Add stack & line number to script eval failure

This commit is contained in:
Karl Seguin committed 2025-12-03 18:53:25 +08:00
1 parent 2a4cbbe569
commit 74ffc273ef
1 file changed
+2
+2
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,
});