Index: Source/bindings/v8/ExceptionStatePlaceholder.h |
diff --git a/Source/bindings/v8/ExceptionStatePlaceholder.h b/Source/bindings/v8/ExceptionStatePlaceholder.h |
index 28013e4874876d1d464878ca379702f99a515827..6df5b1ab9bb673eb3ece39835348733e67b989c8 100644 |
--- a/Source/bindings/v8/ExceptionStatePlaceholder.h |
+++ b/Source/bindings/v8/ExceptionStatePlaceholder.h |
@@ -53,11 +53,7 @@ public: |
#define IGNORE_EXCEPTION (::WebCore::IgnorableExceptionState().returnThis()) |
-#if ASSERT_DISABLED |
- |
-#define ASSERT_NO_EXCEPTION (::WebCore::IgnorableExceptionState().returnThis()) |
- |
-#else |
+#if ASSERT_ENABLED |
class NoExceptionStateAssertionChecker FINAL : public ExceptionState { |
public: |
@@ -74,6 +70,10 @@ private: |
#define ASSERT_NO_EXCEPTION (::WebCore::NoExceptionStateAssertionChecker(__FILE__, __LINE__).returnThis()) |
+#else |
+ |
+#define ASSERT_NO_EXCEPTION (::WebCore::IgnorableExceptionState().returnThis()) |
+ |
#endif |
} // namespace WebCore |