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:11:22 +02:00
parent 04ed11a978
commit c7346a275c
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

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;