From 539b60661e23deb3cc5ece51f522d27a842db3ab Mon Sep 17 00:00:00 2001 From: Antonis Geralis Date: Fri, 26 Aug 2022 22:00:13 +0300 Subject: [PATCH] add bug --- drchaos/mutator.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drchaos/mutator.nim b/drchaos/mutator.nim index e1e56ee..45ef888 100644 --- a/drchaos/mutator.nim +++ b/drchaos/mutator.nim @@ -515,8 +515,8 @@ template mutatorImpl(target, mutator, typ: untyped) = try: FuzzTarget(target)(getInput(x, data)) finally: + # Call Nim's compiler api to report unhandled exceptions. See: Nim#18215 when compileOption("exceptions", "goto"): - # Call Nim's compiler api to report unhandled exceptions. {.emit: "nimTestErrorFlag();".} proc customMutatorImpl(x: var typ; data: openArray[byte]; maxLen: int;