fix unmarked compiler value causing memory issues

https://github.com/wren-lang/wren/issues/869
This commit is contained in:
ruby0x1
2020-12-07 12:34:31 -08:00
parent 9da1e265df
commit cb51d61a64

View File

@ -3638,6 +3638,7 @@ void wrenMarkCompiler(WrenVM* vm, Compiler* compiler)
{
wrenGrayValue(vm, compiler->parser->current.value);
wrenGrayValue(vm, compiler->parser->previous.value);
wrenGrayValue(vm, compiler->parser->next.value);
// Walk up the parent chain to mark the outer compilers too. The VM only
// tracks the innermost one.