diff --git a/fxjs/gc/heap.cpp b/fxjs/gc/heap.cpp --- a/fxjs/gc/heap.cpp +++ b/fxjs/gc/heap.cpp @@ -34,11 +34,12 @@ class CFXGC_Platform final : public cppgc::Platform { return g_platform->MonotonicallyIncreasingTime(); } - std::shared_ptr GetForegroundTaskRunner() override { + std::shared_ptr GetForegroundTaskRunner( + cppgc::TaskPriority priority) override { // V8's default platform creates a new task runner when passed the // v8::Isolate pointer the first time. For non-default platforms this will // require getting the appropriate task runner. - return g_platform->GetForegroundTaskRunner(g_isolate); + return g_platform->GetForegroundTaskRunner(g_isolate, priority); } std::unique_ptr PostJob(