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

@@ -18,7 +18,7 @@ using namespace JSC;
extern "C" void Bun__JSTimeout__call(JSC::EncodedJSValue encodedTimeoutValue, JSC::JSGlobalObject* globalObject)
{
auto& vm = globalObject->vm();
auto& vm = JSC::getVM(globalObject);
auto scope = DECLARE_THROW_SCOPE(vm);
if (UNLIKELY(vm.hasPendingTerminationException())) {
return;