cpp: synchronize on JSC::getVM since its more likely to be forward compatible (#16688)

This commit is contained in:
Meghan Denny
2025-01-29 15:50:57 -08:00
committed by GitHub
parent 4d5ece3f63
commit 29839737df
175 changed files with 628 additions and 628 deletions

View File

@@ -257,7 +257,7 @@ void JSCStackTrace::getFramesForCaller(JSC::VM& vm, JSC::CallFrame* callFrame, J
JSCStackTrace JSCStackTrace::captureCurrentJSStackTrace(Zig::GlobalObject* globalObject, JSC::CallFrame* callFrame, size_t frameLimit, JSC::JSValue caller)
{
JSC::VM& vm = globalObject->vm();
auto& vm = JSC::getVM(globalObject);
if (!callFrame) {
return JSCStackTrace();
}