Explorar o código

[eval] don't assert when there's no frame for exceptions

see #8039
Simon Krajewski %!s(int64=6) %!d(string=hai) anos
pai
achega
8355bcf2eb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/macro/eval/evalContext.ml

+ 1 - 1
src/macro/eval/evalContext.ml

@@ -339,7 +339,7 @@ let throw v p =
 		end;
 		raise_notrace (RunTimeException(v,call_stack eval,p))
 	| None ->
-		assert false
+		raise_notrace (RunTimeException(v,[],p))
 
 let exc v = throw v null_pos