| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp
|
| index 41de4ffa78024b9fdaeae83d5572bd88c648cf34..05ef0b0694bf0c436a005bd9ba04fb498729f05d 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp
|
| @@ -11378,8 +11378,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>();
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| AtomicString propertyName = toCoreAtomicString(nameString);
|
| @@ -11392,13 +11390,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;
|
| TestObjectV8Internal::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>();
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| V8StringResource<> propertyName(nameString);
|
| @@ -11416,13 +11414,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;
|
| TestObjectV8Internal::namedPropertySetter(name, v8Value, info);
|
| }
|
|
|
| static void namedPropertyQuery(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Integer>& info)
|
| {
|
| - if (!name->IsString())
|
| - return;
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| AtomicString propertyName = toCoreAtomicString(name.As<v8::String>());
|
| v8::String::Utf8Value namedProperty(name);
|
| @@ -11438,13 +11436,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;
|
| TestObjectV8Internal::namedPropertyQuery(name, info);
|
| }
|
|
|
| static void namedPropertyDeleter(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Boolean>& info)
|
| {
|
| - if (!name->IsString())
|
| - return;
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| AtomicString propertyName = toCoreAtomicString(name.As<v8::String>());
|
| ScriptState* scriptState = ScriptState::current(info.GetIsolate());
|
| @@ -11455,6 +11453,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;
|
| TestObjectV8Internal::namedPropertyDeleter(name, info);
|
| }
|
|
|
|
|