Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceEventTarget.cpp |
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceEventTarget.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceEventTarget.cpp |
index e720341c6f973145de6931189b6fcf7f05982e6f..0c9297afaf237f0beb4131641b955b0cd3f035ef 100644 |
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceEventTarget.cpp |
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceEventTarget.cpp |
@@ -115,7 +115,7 @@ void V8TestInterfaceEventTargetConstructor::NamedConstructorAttributeGetter( |
// 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(&V8TestInterfaceEventTarget::wrapperTypeInfo); |
@@ -123,7 +123,7 @@ void V8TestInterfaceEventTargetConstructor::NamedConstructorAttributeGetter( |
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); |