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

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

Issue 1854423002: ASSERT -> {DCHECK|DCHECK_XX}, ENABLE(ASSERT) -> DCHECK_IS_ON() in dom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark svg/as-image/svg-nested.html crash on win Created 4 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/core/dom/DOMTypedArray.cpp
diff --git a/third_party/WebKit/Source/core/dom/DOMTypedArray.cpp b/third_party/WebKit/Source/core/dom/DOMTypedArray.cpp
index 65bcf8c86626b2bac03195b54c499a8b6c8f0f69..109808a9eaf32496d1ed73f18c65593dc0f9c163 100644
--- a/third_party/WebKit/Source/core/dom/DOMTypedArray.cpp
+++ b/third_party/WebKit/Source/core/dom/DOMTypedArray.cpp
@@ -26,14 +26,14 @@ v8::Local<v8::Object> DOMTypedArray<WTFTypedArray, V8TypedArray>::wrap(v8::Isola
// object gets associated with the wrapper.
RefPtr<ThisType> protect(this);
- ASSERT(!DOMDataStore::containsWrapper(this, isolate));
+ DCHECK(!DOMDataStore::containsWrapper(this, isolate));
const WrapperTypeInfo* wrapperTypeInfo = this->wrapperTypeInfo();
RefPtr<DOMArrayBufferBase> buffer = this->bufferBase();
v8::Local<v8::Value> v8Buffer = toV8(buffer.get(), creationContext, isolate);
if (v8Buffer.IsEmpty())
return v8::Local<v8::Object>();
- ASSERT(isShared() == v8Buffer->IsSharedArrayBuffer());
+ DCHECK_EQ(isShared(), v8Buffer->IsSharedArrayBuffer());
v8::Local<v8::Object> wrapper;
if (isShared()) {
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMSharedArrayBuffer.cpp ('k') | third_party/WebKit/Source/core/dom/DOMURL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698