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

Unified Diff: third_party/WebKit/Source/wtf/typed_arrays/ArrayBuffer.h

Issue 2585673002: Replace ASSERT, ENABLE(ASSERT), and ASSERT_NOT_REACHED in wtf (Closed)
Patch Set: Fix an Asan issue with LinkedHashSetNodeBase::unlink Created 4 years 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/wtf/typed_arrays/ArrayBuffer.h
diff --git a/third_party/WebKit/Source/wtf/typed_arrays/ArrayBuffer.h b/third_party/WebKit/Source/wtf/typed_arrays/ArrayBuffer.h
index 82adfb67eb8b112fb11e689abbfd4b6833b2b826..d3c061b41e047a5bc7d966f11e5d0186f5b58501 100644
--- a/third_party/WebKit/Source/wtf/typed_arrays/ArrayBuffer.h
+++ b/third_party/WebKit/Source/wtf/typed_arrays/ArrayBuffer.h
@@ -107,7 +107,7 @@ class WTF_EXPORT ArrayBuffer : public RefCounted<ArrayBuffer> {
};
int ArrayBuffer::clampValue(int x, int left, int right) {
- ASSERT(left <= right);
+ DCHECK_LE(left, right);
if (x < left)
x = left;
if (right < x)
@@ -124,7 +124,7 @@ PassRefPtr<ArrayBuffer> ArrayBuffer::create(unsigned numElements,
PassRefPtr<ArrayBuffer> ArrayBuffer::create(ArrayBuffer* other) {
// TODO(binji): support creating a SharedArrayBuffer by copying another
// ArrayBuffer?
- ASSERT(!other->isShared());
+ DCHECK(!other->isShared());
return ArrayBuffer::create(other->data(), other->byteLength());
}
« no previous file with comments | « third_party/WebKit/Source/wtf/text/icu/CollatorICU.cpp ('k') | third_party/WebKit/Source/wtf/typed_arrays/ArrayBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698