We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f22f7d commit 1f46ce2Copy full SHA for 1f46ce2
1 file changed
src/workerd/jsg/setup.h
@@ -19,6 +19,7 @@
19
#include <kj/mutex.h>
20
#include <kj/vector.h>
21
22
+#include <atomic>
23
#include <typeindex>
24
25
namespace workerd::jsg {
@@ -393,7 +394,7 @@ class IsolateBase {
393
394
bool usingEnhancedErrorSerialization = false;
395
bool usingFastJsgStruct = false;
396
bool extraMicrotaskCheckpointRequested = false;
- bool terminationRequested = false;
397
+ std::atomic<bool> terminationRequested = false;
398
399
// Only used when the original module registry is used.
400
bool throwOnUnrecognizedImportAssertion = false;
0 commit comments