Index: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp |
diff --git a/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp b/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp |
index 908e53f838d01a2471791a82a0b29832c7cb6b77..c532c793080a707a7e034ee7485ba415d92a4f1b 100644 |
--- a/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp |
+++ b/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp |
@@ -680,6 +680,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>(); |
TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); |
AtomicString propertyName = toCoreAtomicString(nameString); |
@@ -696,6 +698,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>(); |
TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); |
V8StringResource<> propertyName(nameString); |
@@ -717,6 +721,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; |
TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); |
AtomicString propertyName = toCoreAtomicString(name.As<v8::String>()); |
v8::String::Utf8Value namedProperty(name); |
@@ -736,6 +742,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; |
TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()); |
AtomicString propertyName = toCoreAtomicString(name.As<v8::String>()); |
DeleteResult result = impl->anonymousNamedDeleter(propertyName); |