Bläddra i källkod

[eval] Don't choke on env_parent = None

Note that something wrong might be happening somewhere for this to happen...
Rudy Ges 1 år sedan
förälder
incheckning
e655212eab
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/macro/eval/evalExceptions.ml

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

@@ -87,7 +87,7 @@ let build_exception_stack ctx env =
 			List.rev acc
 		else match env'.env_parent with
 			| Some env -> loop acc env
-			| None -> die "" __LOC__
+			| None -> List.rev acc
 	in
 	let d = match eval.env with
 	| Some env -> loop [] env