diff options
author | 2023-07-18 20:48:51 -0700 | |
---|---|---|
committer | 2023-07-18 20:49:11 -0700 | |
commit | 8bd2b784a272f4ee571cbc924f8822d7ba6f7b51 (patch) | |
tree | 4f8515084f85ccf220738749187a0c8d7579eae2 /src/bun.js/bindings/ScriptExecutionContext.h | |
parent | f494e1b50d1d1b2d49998af0ef9b2b8f12b47620 (diff) | |
download | bun-8bd2b784a272f4ee571cbc924f8822d7ba6f7b51.tar.gz bun-8bd2b784a272f4ee571cbc924f8822d7ba6f7b51.tar.zst bun-8bd2b784a272f4ee571cbc924f8822d7ba6f7b51.zip |
more progress on fixing gc issue
Diffstat (limited to 'src/bun.js/bindings/ScriptExecutionContext.h')
-rw-r--r-- | src/bun.js/bindings/ScriptExecutionContext.h | 2 |
1 files changed, 2 insertions, 0 deletions
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: |