From 8bd2b784a272f4ee571cbc924f8822d7ba6f7b51 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Tue, 18 Jul 2023 20:48:51 -0700 Subject: more progress on fixing gc issue --- src/bun.js/bindings/ScriptExecutionContext.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/bun.js/bindings/ScriptExecutionContext.h') diff --git a/src/bun.js/bindings/ScriptExecutionContext.h b/src/bun.js/bindings/ScriptExecutionContext.h index c3fbd7c9b..520954c29 100644 --- a/src/bun.js/bindings/ScriptExecutionContext.h +++ b/src/bun.js/bindings/ScriptExecutionContext.h @@ -86,6 +86,7 @@ public: , m_globalObject(globalObject) , m_identifier(identifier) { + addToContextsMap(); } static ScriptExecutionContextIdentifier generateIdentifier(); @@ -183,6 +184,7 @@ public: void setGlobalObject(JSC::JSGlobalObject* globalObject) { m_globalObject = globalObject; + m_vm = &globalObject->vm(); } private: -- cgit v1.2.3