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

Unified Diff: third_party/WebKit/Source/modules/fetch/Body.cpp

Issue 2804023004: Replace ASSERT with DCHECK in modules/fetch. (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/modules/fetch/Body.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/Body.cpp b/third_party/WebKit/Source/modules/fetch/Body.cpp
index 909d9600928f25e21ddf21335078b5dd80c425e2..67cace490dea0844924cef932d97c583c1a58630 100644
--- a/third_party/WebKit/Source/modules/fetch/Body.cpp
+++ b/third_party/WebKit/Source/modules/fetch/Body.cpp
@@ -202,7 +202,7 @@ ScriptValue Body::body(ScriptState* scriptState) {
if (!bodyBuffer())
return ScriptValue::createNull(scriptState);
ScriptValue stream = bodyBuffer()->stream();
- ASSERT(stream.getScriptState() == scriptState);
+ DCHECK(stream.getScriptState() == scriptState);
tkent 2017/04/08 02:29:54 Use DCHECK_EQ if it doesn't cause a build failure.
return stream;
}

Powered by Google App Engine
This is Rietveld 408576698