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

Unified Diff: third_party/WebKit/Source/core/dom/DOMDataView.cpp

Issue 2727843003: Replace RELEASE_ASSERT with CHECK in core/{dom,editing,html} (Closed)
Patch Set: Add a comment Created 3 years, 10 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/core/dom/DOMDataView.cpp
diff --git a/third_party/WebKit/Source/core/dom/DOMDataView.cpp b/third_party/WebKit/Source/core/dom/DOMDataView.cpp
index 58763a9059c09828bbab5d70052df402b6cff594..99a53e8b4f9f9fa8bd472aebd8f658cf39e6a52f 100644
--- a/third_party/WebKit/Source/core/dom/DOMDataView.cpp
+++ b/third_party/WebKit/Source/core/dom/DOMDataView.cpp
@@ -20,7 +20,7 @@ class DataView final : public ArrayBufferView {
unsigned byteLength) {
CheckedNumeric<uint32_t> checkedMax = byteOffset;
checkedMax += byteLength;
- RELEASE_ASSERT(checkedMax.ValueOrDie() <= buffer->byteLength());
+ CHECK_LE(checkedMax.ValueOrDie(), buffer->byteLength());
return adoptRef(new DataView(buffer, byteOffset, byteLength));
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/AttributeCollection.h ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698