Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp |
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp |
index 9894bb0e4031ed6980e7f0db42828ced62ae3297..880f0eff20591996ad5b8a0bb5a2dbfbd91f3f2a 100644 |
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp |
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp |
@@ -53,7 +53,9 @@ namespace TestIntegerIndexedV8Internal { |
static void lengthAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
+ |
TestIntegerIndexed* impl = V8TestIntegerIndexed::toImpl(holder); |
+ |
v8SetReturnValueInt(info, impl->length()); |
} |
@@ -65,17 +67,22 @@ void lengthAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& in |
static void lengthAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
- ExceptionState exceptionState(ExceptionState::SetterContext, "length", "TestIntegerIndexed", holder, info.GetIsolate()); |
TestIntegerIndexed* impl = V8TestIntegerIndexed::toImpl(holder); |
+ |
+ ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext, "TestIntegerIndexed", "length"); |
+ |
+ // Prepare the value to be set. |
int cppValue = toInt16(info.GetIsolate(), v8Value, NormalConversion, exceptionState); |
if (exceptionState.hadException()) |
return; |
+ |
impl->setLength(cppValue); |
} |
void lengthAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
v8::Local<v8::Value> v8Value = info[0]; |
+ |
TestIntegerIndexedV8Internal::lengthAttributeSetter(v8Value, info); |
} |