Ver código fonte

minor cleanup

ncannasse 7 anos atrás
pai
commit
5014155fda
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      src/std/error.c

+ 1 - 0
src/std/error.c

@@ -83,6 +83,7 @@ HL_PRIM void hl_throw( vdynamic *v ) {
 	t->exc_value = v;
 	t->trap_current = trap->prev;
 	if( trap == t->trap_uncaught || t->trap_current == NULL || (t->exc_flags&HL_EXC_CATCH_ALL) ) {
+		if( trap == t->trap_uncaught ) t->trap_uncaught = NULL;
 		t->exc_flags |= HL_EXC_IS_THROW;
 		hl_debug_break();
 		t->exc_flags &= ~HL_EXC_IS_THROW;