| Index: third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.cpp b/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.cpp
|
| index 2c1739f0dbe647b463367850c68c034b30e535d3..92ba2f3ac58d31e369b3adea02c0c9e656742aac 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.cpp
|
| @@ -62,11 +62,8 @@ v8::Local<v8::Object> V8DOMWrapper::createWrapper(v8::Isolate* isolate, v8::Loca
|
| // V8PerContextData::createWrapperFromCache, though there is no need to
|
| // cache resulting objects or their constructors.
|
| const DOMWrapperWorld& world = DOMWrapperWorld::world(scope.context());
|
| - if (!type->domTemplate(isolate, world)->InstanceTemplate()->NewInstance(scope.context()).ToLocal(&wrapper)) {
|
| - // Nothing to do.
|
| - }
|
| + wrapper = type->domTemplate(isolate, world)->InstanceTemplate()->NewInstance(scope.context()).ToLocalChecked();
|
| }
|
| -
|
| return wrapper;
|
| }
|
|
|
|
|