From 88c5983b3d3b3e83c38e5be0083390a13d3d9505 Mon Sep 17 00:00:00 2001 From: Daniel Grossmann-Kavanagh Date: Thu, 22 Jan 2026 16:16:44 -0800 Subject: [PATCH] fix: iOS stack trace format --- src/debug.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.ts b/src/debug.ts index 494f1aa2..e5fc05bf 100644 --- a/src/debug.ts +++ b/src/debug.ts @@ -188,7 +188,7 @@ export function curryLog(initialText: string, level: LogLevel = "log") { if (debugging) { const timestamp = new Date().toISOString(); const stack = new Error().stack; - const callerInfo = stack ? stack.split("\n")[2].trim() : ""; + const callerInfo = stack?.split("\n")[2]?.trim() ?? ""; const serializedArgs = args.map(serializeArg).join(" "); const logEntry: LogEntry = {