| 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 23cf9cebf34986daa1d6867ba7d6b16251f34bac..d363bdc51f903ed99a1414b7ea861d43227dda6e 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp
|
| @@ -11257,6 +11257,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>();
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| AtomicString propertyName = toCoreAtomicString(nameString);
|
| @@ -11274,6 +11276,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>();
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| V8StringResource<> propertyName(nameString);
|
| @@ -11296,6 +11300,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;
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| AtomicString propertyName = toCoreAtomicString(name.As<v8::String>());
|
| v8::String::Utf8Value namedProperty(name);
|
| @@ -11316,6 +11322,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;
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| AtomicString propertyName = toCoreAtomicString(name.As<v8::String>());
|
| ScriptState* scriptState = ScriptState::current(info.GetIsolate());
|
|
|