--- deps/v8/src/base/platform/platform-posix.cc	2024-04-10 05:46:12.000000000 -0700
+++ deps/v8/src/base/platform/platform-posix.cc	2024-09-30 19:49:47.000000000 -0700
@@ -1135,6 +1135,7 @@
   SetThreadName(thread->name());
 #if V8_OS_DARWIN
   switch (thread->priority()) {
+#ifndef NOT_ON_YOSEMITE_OR_LATER
     case Thread::Priority::kBestEffort:
       pthread_set_qos_class_self_np(QOS_CLASS_BACKGROUND, 0);
       break;
@@ -1144,6 +1145,7 @@
     case Thread::Priority::kUserBlocking:
       pthread_set_qos_class_self_np(QOS_CLASS_USER_INITIATED, 0);
       break;
+#endif
     case Thread::Priority::kDefault:
       break;
   }
--- deps/v8/src/d8/d8.cc	2024-04-10 05:46:13.000000000 -0700
+++ deps/v8/src/d8/d8.cc	2024-09-30 19:51:11.000000000 -0700
@@ -5696,6 +5696,7 @@
 
   v8::V8::InitializeICUDefaultLocation(argv[0], options.icu_data_file);
 
+#ifndef NOT_ON_YOSEMITE_OR_LATER
 #ifdef V8_OS_DARWIN
   if (options.apply_priority) {
     struct task_category_policy category = {.role =
@@ -5705,6 +5706,7 @@
     pthread_set_qos_class_self_np(QOS_CLASS_USER_INTERACTIVE, 0);
   }
 #endif
+#endif
 
 #ifdef V8_INTL_SUPPORT
   if (options.icu_locale != nullptr) {
