diff options
author | 2023-07-18 23:09:39 -0700 | |
---|---|---|
committer | 2023-07-18 23:09:39 -0700 | |
commit | a59ddb131eab3dbfaf193c11b230c0e4709b3b66 (patch) | |
tree | a7e42b48eca442e12a1e206e904c24a5fcf82617 /src/bun.js/bindings/ScriptExecutionContext.cpp | |
parent | 8bd2b784a272f4ee571cbc924f8822d7ba6f7b51 (diff) | |
download | bun-a59ddb131eab3dbfaf193c11b230c0e4709b3b66.tar.gz bun-a59ddb131eab3dbfaf193c11b230c0e4709b3b66.tar.zst bun-a59ddb131eab3dbfaf193c11b230c0e4709b3b66.zip |
Fix crash in postMessage that repro'd after ~100,000 messages
Diffstat (limited to 'src/bun.js/bindings/ScriptExecutionContext.cpp')
-rw-r--r-- | src/bun.js/bindings/ScriptExecutionContext.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bun.js/bindings/ScriptExecutionContext.cpp b/src/bun.js/bindings/ScriptExecutionContext.cpp index f878fd9fb..d93478ed8 100644 --- a/src/bun.js/bindings/ScriptExecutionContext.cpp +++ b/src/bun.js/bindings/ScriptExecutionContext.cpp @@ -120,8 +120,7 @@ void ScriptExecutionContext::regenerateIdentifier() m_identifier = ++lastUniqueIdentifier; - Locker locker { allScriptExecutionContextsMapLock }; - allScriptExecutionContextsMap().add(m_identifier, this); + addToContextsMap(); } void ScriptExecutionContext::addToContextsMap() |