Chromium Code Reviews| Index: third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp |
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp b/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp |
| index e3f71df605cf0efa40523e759106905434045618..da631315c5dbb5e3b1416ce25425923424118abb 100644 |
| --- a/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp |
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp |
| @@ -127,6 +127,12 @@ v8::Local<v8::Function> V8PerContextData::ConstructorForTypeSlowCase( |
| return v8::Local<v8::Function>(); |
| } |
| + if (type->wrapper_type_prototype == |
| + WrapperTypeInfo::kWrapperTypeNoPrototype) { |
| + constructor_map_.Set(type, interface_object); |
| + return interface_object; |
|
Yuki
2017/04/27 12:18:28
nit: Ideally, we shouldn't skip InstallConditional
tkent
2017/04/28 06:13:36
Done.
|
| + } |
| + |
| v8::Local<v8::Value> prototype_value; |
| if (!interface_object |
| ->Get(current_context, V8AtomicString(isolate_, "prototype")) |