| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp
|
| index 84e8dfd8052a7442a6fc5247d7bfeabc0f687803..027b351dffa184d523aa26a64404c0166e3e1631 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp
|
| @@ -1876,6 +1876,8 @@ 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>();
|
| TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
|
| AtomicString propertyName = toCoreAtomicString(nameString);
|
| @@ -1892,6 +1894,8 @@ 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>();
|
| TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
|
| V8StringResource<> propertyName(nameString);
|
| @@ -1913,6 +1917,8 @@ 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;
|
| TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
|
| AtomicString propertyName = toCoreAtomicString(name.As<v8::String>());
|
| v8::String::Utf8Value namedProperty(name);
|
| @@ -1932,6 +1938,8 @@ 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;
|
| TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
|
| AtomicString propertyName = toCoreAtomicString(name.As<v8::String>());
|
| DeleteResult result = impl->anonymousNamedDeleter(propertyName);
|
|
|