No public description

PiperOrigin-RevId: 953364704
diff --git a/fuzztest/internal/runtime.cc b/fuzztest/internal/runtime.cc
index f03dbaf..00e2026 100644
--- a/fuzztest/internal/runtime.cc
+++ b/fuzztest/internal/runtime.cc
@@ -383,7 +383,18 @@
   absl::Format(out, "%s", GetSeparator());
 }
 
-#ifndef FUZZTEST_USE_CENTIPEDE
+#if defined(FUZZTEST_USE_CENTIPEDE) ||                                        \
+    ((defined(__EMSCRIPTEN__) || defined(__wasm__) || defined(__wasm32__)) && \
+     !defined(__EMSCRIPTEN_PTHREADS__))
+
+// Centipede runner has its own watchdog. Single-threaded WebAssembly (without
+// __EMSCRIPTEN_PTHREADS__) does not support threads.
+class Runtime::Watchdog {
+ public:
+  explicit Watchdog(Runtime&) {}
+};
+
+#else
 
 class Runtime::Watchdog {
  public:
@@ -419,15 +430,7 @@
   Runtime& runtime_;
 };
 
-#else  // FUZZTEST_USE_CENTIPEDE
-
-// Centipede runner has its own watchdog.
-class Runtime::Watchdog {
- public:
-  explicit Watchdog(Runtime&) {}
-};
-
-#endif  // FUZZTEST_USE_CENTIPEDE
+#endif  // FUZZTEST_USE_CENTIPEDE || __EMSCRIPTEN__ || __wasm__ || __wasm32__
 
 Runtime::Watchdog Runtime::CreateWatchdog() { return Watchdog{*this}; }