From f09ebf6accdf73210bb0c9540e171c21e472f236 Mon Sep 17 00:00:00 2001 From: ruby0x1 Date: Wed, 5 May 2021 14:34:16 -0700 Subject: [PATCH] fix attributes causing crash when GC is triggered by compiler init --- src/vm/wren_compiler.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vm/wren_compiler.c b/src/vm/wren_compiler.c index 4ab695f8..a316b864 100644 --- a/src/vm/wren_compiler.c +++ b/src/vm/wren_compiler.c @@ -542,6 +542,7 @@ static void initCompiler(Compiler* compiler, Parser* parser, Compiler* parent, // the middle of initializing the compiler. compiler->fn = NULL; compiler->constants = NULL; + compiler->attributes = NULL; parser->vm->compiler = compiler;