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

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

Issue 2617073002: Additional DCHECKs when accessing SharedArrayBuffer (Closed)
Patch Set: Created 3 years, 11 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/wtf/typed_arrays/ArrayBuffer.cpp
diff --git a/third_party/WebKit/Source/wtf/typed_arrays/ArrayBuffer.cpp b/third_party/WebKit/Source/wtf/typed_arrays/ArrayBuffer.cpp
index c9d6777adb38cf11cece1a904c07cf5f5ccbcb5f..c2979d84c0613e30bc0b04c7b5e37cc092c76b56 100644
--- a/third_party/WebKit/Source/wtf/typed_arrays/ArrayBuffer.cpp
+++ b/third_party/WebKit/Source/wtf/typed_arrays/ArrayBuffer.cpp
@@ -69,7 +69,7 @@ bool ArrayBuffer::shareContentsWith(ArrayBufferContents& result) {
DCHECK(isShared());
RefPtr<ArrayBuffer> keepAlive(this);
- if (!m_contents.data()) {
+ if (!m_contents.dataShared()) {
result.neuter();
return false;
}

Powered by Google App Engine
This is Rietveld 408576698