| Index: Source/bindings/tests/results/modules/V8TestInterface5.cpp
|
| diff --git a/Source/bindings/tests/results/modules/V8TestInterface5.cpp b/Source/bindings/tests/results/modules/V8TestInterface5.cpp
|
| index d50bedc4ae287d3e8a85365ec4c516a4c8146629..cb67e746bb2ddf4d648b4491ab552c54ffc5106b 100644
|
| --- a/Source/bindings/tests/results/modules/V8TestInterface5.cpp
|
| +++ b/Source/bindings/tests/results/modules/V8TestInterface5.cpp
|
| @@ -786,16 +786,7 @@ static void indexedPropertyDeleterCallback(uint32_t index, const v8::PropertyCal
|
|
|
| static void namedPropertyGetter(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Value>& info)
|
| {
|
| - if (!name->IsString())
|
| - return;
|
| auto nameString = name.As<v8::String>();
|
| - v8::Local<v8::Context> context = info.GetIsolate()->GetCurrentContext();
|
| - if (v8CallBoolean(info.Holder()->HasRealNamedProperty(context, nameString)))
|
| - return;
|
| - v8::Local<v8::Value> namedPropertyValue;
|
| - if (info.Holder()->GetRealNamedPropertyInPrototypeChain(context, nameString).ToLocal(&namedPropertyValue))
|
| - return;
|
| -
|
| TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder());
|
| AtomicString propertyName = toCoreAtomicString(nameString);
|
| String result = impl->anonymousNamedGetter(propertyName);
|
| @@ -813,16 +804,7 @@ static void namedPropertyGetterCallback(v8::Local<v8::Name> name, const v8::Prop
|
|
|
| static void namedPropertySetter(v8::Local<v8::Name> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info)
|
| {
|
| - if (!name->IsString())
|
| - return;
|
| auto nameString = name.As<v8::String>();
|
| - v8::Local<v8::Context> context = info.GetIsolate()->GetCurrentContext();
|
| - if (v8CallBoolean(info.Holder()->HasRealNamedProperty(context, nameString)))
|
| - return;
|
| - v8::Local<v8::Value> namedPropertyValue;
|
| - if (info.Holder()->GetRealNamedPropertyInPrototypeChain(context, nameString).ToLocal(&namedPropertyValue))
|
| - return;
|
| -
|
| TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder());
|
| V8StringResource<> propertyName(nameString);
|
| if (!propertyName.prepare())
|
| @@ -845,8 +827,6 @@ static void namedPropertySetterCallback(v8::Local<v8::Name> name, v8::Local<v8::
|
|
|
| static void namedPropertyQuery(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Integer>& info)
|
| {
|
| - if (!name->IsString())
|
| - return;
|
| TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder());
|
| AtomicString propertyName = toCoreAtomicString(name.As<v8::String>());
|
| v8::String::Utf8Value namedProperty(name);
|
| @@ -868,8 +848,6 @@ static void namedPropertyQueryCallback(v8::Local<v8::Name> name, const v8::Prope
|
|
|
| static void namedPropertyDeleter(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Boolean>& info)
|
| {
|
| - if (!name->IsString())
|
| - return;
|
| TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder());
|
| AtomicString propertyName = toCoreAtomicString(name.As<v8::String>());
|
| DeleteResult result = impl->anonymousNamedDeleter(propertyName);
|
| @@ -972,6 +950,8 @@ static void installV8TestInterface5Template(v8::Local<v8::FunctionTemplate> func
|
| }
|
| {
|
| v8::NamedPropertyHandlerConfiguration config(TestInterface5ImplementationV8Internal::namedPropertyGetterCallback, TestInterface5ImplementationV8Internal::namedPropertySetterCallback, TestInterface5ImplementationV8Internal::namedPropertyQueryCallback, TestInterface5ImplementationV8Internal::namedPropertyDeleterCallback, TestInterface5ImplementationV8Internal::namedPropertyEnumeratorCallback);
|
| + config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(config.flags) | static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStrings));
|
| + config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(config.flags) | static_cast<int>(v8::PropertyHandlerFlags::kNonMasking));
|
| functionTemplate->InstanceTemplate()->SetHandler(config);
|
| }
|
| static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIteratorConfiguration = { v8::Symbol::GetIterator, TestInterface5ImplementationV8Internal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts };
|
|
|