Skip to content

Commit

Permalink
Update platform GetForegroundTaskRunner override (nodejs#198)
Browse files Browse the repository at this point in the history
* Update GetForegroundTaskRunner override

* Fix line ending

---------

Co-authored-by: Etienne Pierre-doray <etiennep@chromium.org>
  • Loading branch information
eti-p-doray and Etienne Pierre-doray authored Aug 29, 2024
1 parent df5efc4 commit 442f23b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/node_platform.cc
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,9 @@ bool NodePlatform::IdleTasksEnabled(Isolate* isolate) {
}

std::shared_ptr<v8::TaskRunner>
NodePlatform::GetForegroundTaskRunner(Isolate* isolate) {
NodePlatform::GetForegroundTaskRunner(
Isolate* isolate,
v8::TaskPriority priority) {
return ForIsolate(isolate)->GetForegroundTaskRunner();
}

Expand Down
2 changes: 1 addition & 1 deletion src/node_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class NodePlatform : public MultiIsolatePlatform {
void* data) override;

std::shared_ptr<v8::TaskRunner> GetForegroundTaskRunner(
v8::Isolate* isolate) override;
v8::Isolate* isolate, v8::TaskPriority priority) override;

Platform::StackTracePrinter GetStackTracePrinter() override;
v8::PageAllocator* GetPageAllocator() override;
Expand Down

0 comments on commit 442f23b

Please sign in to comment.