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

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: 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 fb9db297893d1d14450ce216efec2d4e8b7b5daa..48f6a5a8bdd5ebda9f8298754316a69a32545fa6 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp
@@ -41,12 +41,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