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