Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceNamedConstructor2.cpp |
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceNamedConstructor2.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceNamedConstructor2.cpp |
index e230dd3f3a3772b7a4fd873478bfb323ecef51bc..ebca3cc99e207d766a4f5ce9a39a38af6d4fb853 100644 |
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceNamedConstructor2.cpp |
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceNamedConstructor2.cpp |
@@ -126,7 +126,7 @@ void V8TestInterfaceNamedConstructor2Constructor::NamedConstructorAttributeGette |
// Set the prototype of named constructors to the regular constructor. |
auto privateProperty = V8PrivateProperty::getNamedConstructorInitialized(info.GetIsolate()); |
v8::Local<v8::Context> currentContext = info.GetIsolate()->GetCurrentContext(); |
- v8::Local<v8::Value> privateValue = privateProperty.get(currentContext, namedConstructor); |
+ v8::Local<v8::Value> privateValue = privateProperty.getOrEmpty(namedConstructor); |
if (privateValue.IsEmpty()) { |
v8::Local<v8::Function> interface = perContextData->constructorForType(&V8TestInterfaceNamedConstructor2::wrapperTypeInfo); |
@@ -134,7 +134,7 @@ void V8TestInterfaceNamedConstructor2Constructor::NamedConstructorAttributeGette |
bool result = namedConstructor->Set(currentContext, v8AtomicString(info.GetIsolate(), "prototype"), interfacePrototype).ToChecked(); |
if (!result) |
return; |
- privateProperty.set(currentContext, namedConstructor, v8::True(info.GetIsolate())); |
+ privateProperty.set(namedConstructor, v8::True(info.GetIsolate())); |
} |
v8SetReturnValue(info, namedConstructor); |