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

Unified Diff: Source/bindings/core/v8/npruntime.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/npruntime.cpp
diff --git a/Source/bindings/core/v8/npruntime.cpp b/Source/bindings/core/v8/npruntime.cpp
index e65f8bd0951b61313085fa056dc21ab0d1c7b977..13ea5c2f24fdc0b8b3c993fa380cfda6ab51ecae 100644
--- a/Source/bindings/core/v8/npruntime.cpp
+++ b/Source/bindings/core/v8/npruntime.cpp
@@ -421,7 +421,7 @@ void _NPN_UnregisterObject(NPObject* npObject)
ASSERT_WITH_SECURITY_IMPLICATION(rootObjectMap().find(npObject) != rootObjectMap().end());
NPObjectSet* set = rootObjectMap().get(npObject);
while (set->size() > 0) {
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
unsigned size = set->size();
#endif
NPObject* sub_object = *(set->begin());
« no previous file with comments | « Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp ('k') | Source/bindings/modules/v8/IDBBindingUtilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698