Index: third_party/WebKit/Source/core/dom/Document.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp |
index 44900c503d5a46d869bd335d49f37958e2b0c9ce..8c1c043632fe2f3c0c3b70dba4d5747165f0aaf8 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.cpp |
+++ b/third_party/WebKit/Source/core/dom/Document.cpp |
@@ -5850,9 +5850,7 @@ v8::Local<v8::Object> Document::wrap(v8::Isolate* isolate, v8::Local<v8::Object> |
} |
v8::Local<v8::Object> wrapper = V8DOMWrapper::createWrapper(isolate, creationContext, wrapperType); |
- if (UNLIKELY(wrapper.IsEmpty())) |
- return wrapper; |
- |
+ DCHECK(!wrapper.IsEmpty()); |
wrapperType->installConditionallyEnabledProperties(wrapper, isolate); |
return associateWithWrapper(isolate, wrapperType, wrapper); |
} |