From 0b4f502393c1455370bf2bb3e98908c2a6e465f9 Mon Sep 17 00:00:00 2001 From: Ico Doornekamp Date: Mon, 7 Nov 2022 12:17:00 +0100 Subject: [PATCH] Export trace member of exception type to allow custom stack trace entries (#20772) Added insertStackTraceEntry() proc to allow custom stack trace entries --- lib/system.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/system.nim b/lib/system.nim index b8b25f498471..8d193f3a7d96 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -493,9 +493,9 @@ type ## providing an exception message ## is bad style. when defined(js): - trace: string + trace*: string else: - trace: seq[StackTraceEntry] + trace*: seq[StackTraceEntry] up: ref Exception # used for stacking exceptions. Not exported! Defect* = object of Exception ## \