Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Aug 2, 2024
1 parent 5bda985 commit ae98adc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/JavaScriptCore/runtime/DeferredWorkTimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ DeferredWorkTimer::Ticket DeferredWorkTimer::addPendingWork(WorkType type, VM& v

dataLogLnIf(DeferredWorkTimerInternal::verbose, "Adding new pending ticket: ", RawPointer(ticket));
if (onAddPendingWork) {
onAddPendingWork(ticketData, type);
onAddPendingWork(WTFMove(ticketData), type);
} else {
auto result = m_pendingTickets.add(WTFMove(ticketData));
RELEASE_ASSERT(result.isNewEntry);
Expand Down
2 changes: 1 addition & 1 deletion Source/JavaScriptCore/runtime/DeferredWorkTimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class DeferredWorkTimer final : public JSRunLoopTimer {

static Ref<DeferredWorkTimer> create(VM& vm) { return adoptRef(*new DeferredWorkTimer(vm)); }

WTF::Function<void(Ref<TicketData>, WorkType)> onAddPendingWork;
WTF::Function<void(Ref<TicketData>&&, WorkType)> onAddPendingWork;
WTF::Function<void(Ticket, Task&&)> onScheduleWorkSoon;
WTF::Function<void(Ticket)> onCancelPendingWork;
private:
Expand Down

0 comments on commit ae98adc

Please sign in to comment.