Chromium Code Reviews| Index: Source/bindings/templates/interface.cpp |
| diff --git a/Source/bindings/templates/interface.cpp b/Source/bindings/templates/interface.cpp |
| index 81d3924f59f39c32ab4fdb1f92a233691a91a1b1..90eac0465ba8d87584f8a4dfd28bd251e67578ac 100644 |
| --- a/Source/bindings/templates/interface.cpp |
| +++ b/Source/bindings/templates/interface.cpp |
| @@ -462,7 +462,7 @@ static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A |
| {##############################################################################} |
| {% block origin_safe_method_setter %} |
| {% if has_origin_safe_method_setter %} |
| -static void {{cpp_class}}OriginSafeMethodSetter(v8::Local<v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| +static void {{cpp_class}}OriginSafeMethodSetter(v8::Local<v8::Name> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| { |
| v8::Local<v8::Object> holder = {{v8_class}}::findInstanceInPrototypeChain(info.This(), info.GetIsolate()); |
| if (holder.IsEmpty()) |
| @@ -476,10 +476,11 @@ static void {{cpp_class}}OriginSafeMethodSetter(v8::Local<v8::String> name, v8:: |
| } |
| {# The findInstanceInPrototypeChain() call above only returns a non-empty handle if info.This() is an Object. #} |
| - V8HiddenValue::setHiddenValue(info.GetIsolate(), v8::Local<v8::Object>::Cast(info.This()), name, v8Value); |
| + ASSERT(name->IsString()); |
|
Yuki
2015/03/13 09:05:06
Please add a FIXME comment, or shall we wait for V
dcarney
2015/03/16 20:17:44
As<v8::String> is already providing an ASSERT, so
bashi
2015/03/17 01:07:31
Removed.
|
| + V8HiddenValue::setHiddenValue(info.GetIsolate(), v8::Local<v8::Object>::Cast(info.This()), name.As<v8::String>(), v8Value); |
| } |
| -static void {{cpp_class}}OriginSafeMethodSetterCallback(v8::Local<v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| +static void {{cpp_class}}OriginSafeMethodSetterCallback(v8::Local<v8::Name> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| { |
| TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| {{cpp_class}}V8Internal::{{cpp_class}}OriginSafeMethodSetter(name, v8Value, info); |