| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp
|
| index 013b701b55e328883b6274817f0f42ef7ffff2de..d3a17029a5b0ca56cbec4f5ae39f28b6a9a6b8e5 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp
|
| @@ -381,7 +381,7 @@ void V8TestInterfaceConstructorConstructor::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(&V8TestInterfaceConstructor::wrapperTypeInfo);
|
| @@ -389,7 +389,7 @@ void V8TestInterfaceConstructorConstructor::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);
|
|
|