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

Unified Diff: Source/modules/indexeddb/IDBCursor.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
« no previous file with comments | « Source/modules/filesystem/FileWriterSync.cpp ('k') | Source/modules/indexeddb/IDBKeyPath.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBCursor.cpp
diff --git a/Source/modules/indexeddb/IDBCursor.cpp b/Source/modules/indexeddb/IDBCursor.cpp
index a198fedc91f157597d959373f3fd075799585def..67ea1e72867e9ac9fb2db48540ea36bb64339f41 100644
--- a/Source/modules/indexeddb/IDBCursor.cpp
+++ b/Source/modules/indexeddb/IDBCursor.cpp
@@ -320,7 +320,7 @@ ScriptValue IDBCursor::value(ScriptState* scriptState)
IDBAny* value;
if (metadata.autoIncrement && !metadata.keyPath.isNull()) {
value = IDBAny::create(m_value, m_blobInfo.get(), m_primaryKey, metadata.keyPath);
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
assertPrimaryKeyValidOrInjectable(scriptState, m_value, m_blobInfo.get(), m_primaryKey, metadata.keyPath);
#endif
} else {
« no previous file with comments | « Source/modules/filesystem/FileWriterSync.cpp ('k') | Source/modules/indexeddb/IDBKeyPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698