forked from Mirror/wren
fix attributes causing crash when GC is triggered by compiler init
This commit is contained in:
@ -542,6 +542,7 @@ static void initCompiler(Compiler* compiler, Parser* parser, Compiler* parent,
|
|||||||
// the middle of initializing the compiler.
|
// the middle of initializing the compiler.
|
||||||
compiler->fn = NULL;
|
compiler->fn = NULL;
|
||||||
compiler->constants = NULL;
|
compiler->constants = NULL;
|
||||||
|
compiler->attributes = NULL;
|
||||||
|
|
||||||
parser->vm->compiler = compiler;
|
parser->vm->compiler = compiler;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user