| 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());
|
| }
|
|
|
|
|