| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestSpecialOperations.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestSpecialOperations.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestSpecialOperations.cpp
|
| index 81d0feeb526a39fb019602c1a9f769680496a36b..3599ce7355bd8e7fde14d36d0386a869d409e51b 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestSpecialOperations.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestSpecialOperations.cpp
|
| @@ -65,8 +65,6 @@ static void namedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i
|
|
|
| static void namedPropertyGetter(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Value>& info)
|
| {
|
| - if (!name->IsString())
|
| - return;
|
| auto nameString = name.As<v8::String>();
|
| TestSpecialOperations* impl = V8TestSpecialOperations::toImpl(info.Holder());
|
| AtomicString propertyName = toCoreAtomicString(nameString);
|
| @@ -79,13 +77,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;
|
| TestSpecialOperationsV8Internal::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>();
|
| TestSpecialOperations* impl = V8TestSpecialOperations::toImpl(info.Holder());
|
| V8StringResource<> propertyName(nameString);
|
| @@ -105,13 +103,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;
|
| TestSpecialOperationsV8Internal::namedPropertySetter(name, v8Value, info);
|
| }
|
|
|
| static void namedPropertyQuery(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Integer>& info)
|
| {
|
| - if (!name->IsString())
|
| - return;
|
| TestSpecialOperations* impl = V8TestSpecialOperations::toImpl(info.Holder());
|
| AtomicString propertyName = toCoreAtomicString(name.As<v8::String>());
|
| v8::String::Utf8Value namedProperty(name);
|
| @@ -126,6 +124,8 @@ 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;
|
| TestSpecialOperationsV8Internal::namedPropertyQuery(name, info);
|
| }
|
|
|
|
|