Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexedGlobal.cpp |
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexedGlobal.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexedGlobal.cpp |
index 4c7923b5ad3d448fd0d7f8eb6695ad3a256b662c..379859548af3475c82028b6f00fa6578fe244d17 100644 |
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexedGlobal.cpp |
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexedGlobal.cpp |
@@ -53,7 +53,9 @@ namespace TestIntegerIndexedGlobalV8Internal { |
static void lengthAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
+ |
TestIntegerIndexedGlobal* impl = V8TestIntegerIndexedGlobal::toImpl(holder); |
+ |
v8SetReturnValue(info, static_cast<double>(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", "TestIntegerIndexedGlobal", holder, info.GetIsolate()); |
TestIntegerIndexedGlobal* impl = V8TestIntegerIndexedGlobal::toImpl(holder); |
+ |
+ ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext, "TestIntegerIndexedGlobal", "length"); |
+ |
+ // Prepare the value to be set. |
unsigned long long cppValue = toUInt64(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]; |
+ |
TestIntegerIndexedGlobalV8Internal::lengthAttributeSetter(v8Value, info); |
} |