mirror of
https://github.com/oven-sh/bun
synced 2026-02-18 14:51:52 +00:00
cpp: synchronize on JSC::getVM since its more likely to be forward compatible (#16688)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user