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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8BindingMacros.h

Issue 2817533003: Replace ASSERT, RELEASE_ASSERT, and ASSERT_NOT_REACHED in bindings (Closed)
Patch Set: fixed dcheck build error Created 3 years, 8 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: third_party/WebKit/Source/bindings/core/v8/V8BindingMacros.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8BindingMacros.h b/third_party/WebKit/Source/bindings/core/v8/V8BindingMacros.h
index 28af46d4876348f5dc27e19880fde50d243aed8b..d58ff2653ba9cf4f6667046b5ce3473f3fcebbbb 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8BindingMacros.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8BindingMacros.h
@@ -82,7 +82,7 @@ inline bool V8Call(v8::Maybe<T> maybe,
T& out_variable,
v8::TryCatch& try_catch) {
bool success = V8Call(maybe, out_variable);
- ASSERT(success || try_catch.HasCaught());
+ DCHECK(success || try_catch.HasCaught());
return success;
}
@@ -98,7 +98,7 @@ inline bool V8Call(v8::MaybeLocal<T> maybe_local,
v8::Local<T>& out_variable,
v8::TryCatch& try_catch) {
bool success = maybe_local.ToLocal(&out_variable);
- ASSERT(success || try_catch.HasCaught());
+ DCHECK(success || try_catch.HasCaught());
return success;
}

Powered by Google App Engine
This is Rietveld 408576698