diff --git a/src/workerd/jsg/setup.h b/src/workerd/jsg/setup.h index 587de58f527..28ddebc8184 100644 --- a/src/workerd/jsg/setup.h +++ b/src/workerd/jsg/setup.h @@ -19,6 +19,7 @@ #include #include +#include #include namespace workerd::jsg { @@ -393,7 +394,7 @@ class IsolateBase { bool usingEnhancedErrorSerialization = false; bool usingFastJsgStruct = false; bool extraMicrotaskCheckpointRequested = false; - bool terminationRequested = false; + std::atomic terminationRequested = false; // Only used when the original module registry is used. bool throwOnUnrecognizedImportAssertion = false;