diff --git a/src/bun.js/bindings/JSCTaskScheduler.cpp b/src/bun.js/bindings/JSCTaskScheduler.cpp index 616b3ed693ba6b..5474113a45187d 100644 --- a/src/bun.js/bindings/JSCTaskScheduler.cpp +++ b/src/bun.js/bindings/JSCTaskScheduler.cpp @@ -55,7 +55,7 @@ void JSCTaskScheduler::onAddPendingWork(Ref&& ticket, JSC::DeferredW void JSCTaskScheduler::onScheduleWorkSoon(Ticket ticket, Task&& task) { auto* job = new JSCDeferredWorkTask(*ticket, WTFMove(task)); - Bun__queueJSCDeferredWorkTaskConcurrently(WebCore::clientData(getVM(ticket))->bunVM, job); + Bun__queueJSCDeferredWorkTaskConcurrently(WebCore::clientData(job->vm())->bunVM, job); } void JSCTaskScheduler::onCancelPendingWork(Ticket ticket)