Restore thunks on any exception

There's no reason to restrict this to Error exceptions. This shouldn't
matter to #1407 since the repl doesn't catch non-Error exceptions
anyway, but you never know...
This commit is contained in:
Eelco Dolstra
2017-06-20 12:13:17 +02:00
parent 04ed11a978
commit c7346a275c
+1 -1
View File
@@ -33,7 +33,7 @@ void EvalState::forceValue(Value & v, const Pos & pos)
v.type = tBlackhole;
//checkInterrupt();
expr->eval(*this, *env, v);
} catch (Error & e) {
} catch (...) {
v.type = tThunk;
v.thunk.env = env;
v.thunk.expr = expr;