mirror of https://github.com/arendst/Tasmota.git
Berry fix raise counter
This commit is contained in:
parent
4acd9dbd0f
commit
51e99fe4af
|
@ -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);
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue