mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-31 15:43:01 +00:00 
			
		
		
		
	symbolslots should be gc'd, local_symbols always pushed in case *debug* is set in middle of function
This commit is contained in:
		| @@ -753,10 +753,7 @@ static JanetSlot janetc_while(JanetFopts opts, int32_t argn, const Janet *argv) | ||||
|         if (c->buffer) janet_v__cnt(c->buffer) = labelwt; | ||||
|         if (c->mapbuffer) janet_v__cnt(c->mapbuffer) = labelwt; | ||||
|  | ||||
|  | ||||
|         if (janet_truthy(janet_dyn("debug"))) { | ||||
|             janet_v_push(c->local_symbols, NULL); | ||||
|         } | ||||
|         janet_v_push(c->local_symbols, NULL); | ||||
|         janetc_scope(&tempscope, c, JANET_SCOPE_FUNCTION, "while-iife"); | ||||
|  | ||||
|         /* Recompile in the function scope */ | ||||
| @@ -833,9 +830,7 @@ static JanetSlot janetc_fn(JanetFopts opts, int32_t argn, const Janet *argv) { | ||||
|  | ||||
|     /* Begin function */ | ||||
|     c->scope->flags |= JANET_SCOPE_CLOSURE; | ||||
|     if (janet_truthy(janet_dyn("debug"))) { | ||||
|         janet_v_push(c->local_symbols, NULL); | ||||
|     } | ||||
|     janet_v_push(c->local_symbols, NULL); | ||||
|     janetc_scope(&fnscope, c, JANET_SCOPE_FUNCTION, "function"); | ||||
|  | ||||
|     if (argn == 0) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jona Ekenberg
					Jona Ekenberg