Berry fix raise counter

This commit is contained in:
Stephan Hadinger 2021-11-21 23:17:45 +01:00
parent 4acd9dbd0f
commit 51e99fe4af
2 changed files with 3 additions and 3 deletions

View File

@ -74,6 +74,9 @@ struct filebuf {
void be_throw(bvm *vm, int errorcode)
{
#if BE_USE_PERF_COUNTERS
vm->counter_exc++;
#endif
if (vm->errjmp) {
vm->errjmp->status = errorcode;
exec_throw(vm->errjmp);

View File

@ -1019,9 +1019,6 @@ newframe: /* a new call frame */
dispatch();
}
opcase(RAISE): {
#if BE_USE_PERF_COUNTERS
vm->counter_exc++;
#endif
if (IGET_RA(ins) < 2) { /* A==2 means no arguments are passed to RAISE, i.e. rethrow with current exception */
bvalue *top = vm->top;
top[0] = *RKB(); /* push the exception value to top */