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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp

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/ScriptState.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp
index 4074bca184e6d2f9abe7adac93bc069707a38043..d8151fccc83f9bdded4b16785a3b7f4975bd8646 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp
@@ -40,12 +40,12 @@ ScriptState::ScriptState(v8::Local<v8::Context> context,
}
ScriptState::~ScriptState() {
- ASSERT(!per_context_data_);
- ASSERT(context_.IsEmpty());
+ DCHECK(!per_context_data_);
+ DCHECK(context_.IsEmpty());
}
void ScriptState::DetachGlobalObject() {
- ASSERT(!context_.IsEmpty());
+ DCHECK(!context_.IsEmpty());
GetContext()->DetachGlobal();
}

Powered by Google App Engine
This is Rietveld 408576698