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 77d03b01d6b5d95ba7f39619f07a2ff1c6a1a350..c5b0f35d26bd9ea0792a46940e53464f0706d289 100644 |
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp |
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp |
@@ -11361,6 +11361,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); |
@@ -11378,6 +11380,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); |
@@ -11400,6 +11404,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); |
@@ -11420,6 +11426,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()); |