diff --git a/Userland/Libraries/LibJS/Runtime/VM.cpp b/Userland/Libraries/LibJS/Runtime/VM.cpp index 4a032b732f2..cd6fd9f65c5 100644 --- a/Userland/Libraries/LibJS/Runtime/VM.cpp +++ b/Userland/Libraries/LibJS/Runtime/VM.cpp @@ -106,6 +106,7 @@ void VM::gather_roots(HashTable& roots) roots.set(&argument.as_cell()); } roots.set(execution_context->lexical_environment); + roots.set(execution_context->variable_environment); } #define __JS_ENUMERATE(SymbolName, snake_name) \