Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp |
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp |
index 17ed8b9cbe3c123b49bd23ec9b88573b97b0660a..610da9c37e8b1111d5465cd13d0edc9a208d5b98 100644 |
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp |
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp |
@@ -448,8 +448,6 @@ 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>(); |
TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
AtomicString propertyName = toCoreAtomicString(nameString); |
@@ -465,13 +463,13 @@ static void namedPropertyGetter(v8::Local<v8::Name> name, const v8::PropertyCall |
static void namedPropertyGetterCallback(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
+ if (!name->IsString()) |
+ return; |
TestInterface2V8Internal::namedPropertyGetter(name, info); |
} |
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::String::Utf8Value namedProperty(nameString); |
ExceptionState exceptionState(ExceptionState::SetterContext, *namedProperty, "TestInterface2", info.Holder(), info.GetIsolate()); |
@@ -495,13 +493,13 @@ static void namedPropertySetter(v8::Local<v8::Name> name, v8::Local<v8::Value> v |
static void namedPropertySetterCallback(v8::Local<v8::Name> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
+ if (!name->IsString()) |
+ return; |
TestInterface2V8Internal::namedPropertySetter(name, v8Value, info); |
} |
static void namedPropertyQuery(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Integer>& info) |
{ |
- if (!name->IsString()) |
- return; |
TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
AtomicString propertyName = toCoreAtomicString(name.As<v8::String>()); |
v8::String::Utf8Value namedProperty(name); |
@@ -516,13 +514,13 @@ static void namedPropertyQuery(v8::Local<v8::Name> name, const v8::PropertyCallb |
static void namedPropertyQueryCallback(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Integer>& info) |
{ |
+ if (!name->IsString()) |
+ return; |
TestInterface2V8Internal::namedPropertyQuery(name, info); |
} |
static void namedPropertyDeleter(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Boolean>& info) |
{ |
- if (!name->IsString()) |
- return; |
TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
AtomicString propertyName = toCoreAtomicString(name.As<v8::String>()); |
v8::String::Utf8Value namedProperty(name); |
@@ -536,6 +534,8 @@ static void namedPropertyDeleter(v8::Local<v8::Name> name, const v8::PropertyCal |
static void namedPropertyDeleterCallback(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Boolean>& info) |
{ |
+ if (!name->IsString()) |
+ return; |
TestInterface2V8Internal::namedPropertyDeleter(name, info); |
} |