Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Unified Diff: Source/bindings/core/v8/custom/V8BlobCustomHelpers.cpp

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/core/v8/custom/V8BlobCustomHelpers.cpp
diff --git a/Source/bindings/core/v8/custom/V8BlobCustomHelpers.cpp b/Source/bindings/core/v8/custom/V8BlobCustomHelpers.cpp
index 4dd02cdc7e82d754c20777ab885af798d2d59227..ad51c71322c2d77623032f75784528634915b127 100644
--- a/Source/bindings/core/v8/custom/V8BlobCustomHelpers.cpp
+++ b/Source/bindings/core/v8/custom/V8BlobCustomHelpers.cpp
@@ -46,9 +46,9 @@ namespace V8BlobCustomHelpers {
ParsedProperties::ParsedProperties(bool hasFileProperties)
: m_normalizeLineEndingsToNative(false)
, m_hasFileProperties(hasFileProperties)
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
, m_hasLastModified(false)
-#endif // NDEBUG
+#endif // ENABLE(ASSERT)
{
}
@@ -57,9 +57,9 @@ void ParsedProperties::setLastModified(double lastModified)
ASSERT(m_hasFileProperties);
ASSERT(!m_hasLastModified);
m_lastModified = lastModified;
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
m_hasLastModified = true;
-#endif // NDEBUG
+#endif // ENABLE(ASSERT)
}
void ParsedProperties::setDefaultLastModified()
« no previous file with comments | « Source/bindings/core/v8/custom/V8BlobCustomHelpers.h ('k') | Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698