Index: Source/web/WebScopedMicrotaskSuppression.cpp |
diff --git a/Source/web/WebScopedMicrotaskSuppression.cpp b/Source/web/WebScopedMicrotaskSuppression.cpp |
index 3a103e232a4ab2b6edcc09e8d5f551161372e2fd..31a1fd01d9b2b0b5b95f94215b6b3b268221a9a4 100644 |
--- a/Source/web/WebScopedMicrotaskSuppression.cpp |
+++ b/Source/web/WebScopedMicrotaskSuppression.cpp |
@@ -32,11 +32,12 @@ |
#include "public/web/WebScopedMicrotaskSuppression.h" |
#include "bindings/core/v8/V8RecursionScope.h" |
+#include "wtf/Assertions.h" |
#include "wtf/OwnPtr.h" |
namespace blink { |
-#ifndef NDEBUG |
+#if ENABLE(ASSERT) |
class WebScopedMicrotaskSuppression::Impl : public WebCore::V8RecursionScope::MicrotaskSuppression { |
public: |
Impl(v8::Isolate* isolate) |
@@ -48,14 +49,14 @@ public: |
void WebScopedMicrotaskSuppression::initialize() |
{ |
-#ifndef NDEBUG |
+#if ENABLE(ASSERT) |
m_impl.reset(new Impl(v8::Isolate::GetCurrent())); |
#endif |
} |
void WebScopedMicrotaskSuppression::reset() |
{ |
-#ifndef NDEBUG |
+#if ENABLE(ASSERT) |
m_impl.reset(0); |
#endif |
} |