1
0
forked from Mirror/wren

fix attributes causing crash when GC is triggered by compiler init

This commit is contained in:
ruby0x1
2021-05-05 14:34:16 -07:00
parent 7fb7f6430d
commit f09ebf6acc

View File

@ -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;