Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index d1434cd1c0e93a29ddcc6d1a4089276c38d361cd..d7c01afb2cd603f6992067cbf20ab950c35bc598 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -8942,6 +8942,10 @@ void Isolate::VisitWeakHandles(PersistentHandleVisitor* visitor) { |
isolate->global_handles()->IterateWeakRootsInNewSpaceWithClassIds(visitor); |
} |
+void Isolate::SetAllowAtomicsWait(bool allow) { |
+ i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); |
+ isolate->set_allow_atomics_wait(allow); |
+} |
MicrotasksScope::MicrotasksScope(Isolate* isolate, MicrotasksScope::Type type) |
: isolate_(reinterpret_cast<i::Isolate*>(isolate)), |