mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
fix(api): remove invalid assertions
Problem: `try_leave()` assertions moved in #31600 no longer hold. Solution: Remove the assertions.
This commit is contained in:
committed by
Christian Clason
parent
bc1018a8d3
commit
36f44b3121
@ -123,13 +123,6 @@ void try_leave(const TryState *const tstate, Error *const err)
|
|||||||
discard_current_exception();
|
discard_current_exception();
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(msg_list == &tstate->private_msg_list);
|
|
||||||
assert(*msg_list == NULL);
|
|
||||||
assert(current_exception == NULL);
|
|
||||||
assert(!got_int);
|
|
||||||
assert(!did_throw);
|
|
||||||
assert(!need_rethrow);
|
|
||||||
assert(!did_emsg);
|
|
||||||
// Restore the exception context.
|
// Restore the exception context.
|
||||||
msg_list = (msglist_T **)tstate->msg_list;
|
msg_list = (msglist_T **)tstate->msg_list;
|
||||||
current_exception = tstate->current_exception;
|
current_exception = tstate->current_exception;
|
||||||
|
Reference in New Issue
Block a user