diff --git a/compiler/vm.nim b/compiler/vm.nim index bb217c4db2..f6296d18ca 100644 --- a/compiler/vm.nim +++ b/compiler/vm.nim @@ -2078,6 +2078,7 @@ proc execute(c: PCtx, start: int): PNode = result = rawExecute(c, start, tos).regToNode proc execProc*(c: PCtx; sym: PSym; args: openArray[PNode]): PNode = + c.loopIterations = c.config.maxLoopIterationsVM if sym.kind in routineKinds: if sym.typ.len-1 != args.len: localError(c.config, sym.info,