| Index: Source/bindings/tests/results/core/V8TestDictionary.cpp
|
| diff --git a/Source/bindings/tests/results/core/V8TestDictionary.cpp b/Source/bindings/tests/results/core/V8TestDictionary.cpp
|
| index 88701ccda6fd1db612c79fb3321f45a6dfcb4c6a..5346369f73f6f60923f54b11dc5d31713b9defc4 100644
|
| --- a/Source/bindings/tests/results/core/V8TestDictionary.cpp
|
| +++ b/Source/bindings/tests/results/core/V8TestDictionary.cpp
|
| @@ -15,6 +15,7 @@
|
| #include "bindings/core/v8/V8TestInterface.h"
|
| #include "bindings/core/v8/V8TestInterfaceGarbageCollected.h"
|
| #include "bindings/core/v8/V8TestInterfaceWillBeGarbageCollected.h"
|
| +#include "bindings/core/v8/V8Uint8Array.h"
|
|
|
| namespace blink {
|
|
|
| @@ -297,6 +298,18 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Handle<v8::Value> v8Valu
|
| impl.setTestInterfaceWillBeGarbageCollectedOrNullMember(testInterfaceWillBeGarbageCollectedOrNullMember);
|
| }
|
|
|
| + v8::Local<v8::Value> uint8ArrayMemberValue = v8Object->Get(v8String(isolate, "uint8ArrayMember"));
|
| + if (block.HasCaught()) {
|
| + exceptionState.rethrowV8Exception(block.Exception());
|
| + return;
|
| + }
|
| + if (uint8ArrayMemberValue.IsEmpty() || uint8ArrayMemberValue->IsUndefined()) {
|
| + // Do nothing.
|
| + } else {
|
| + DOMUint8Array* uint8ArrayMember = uint8ArrayMemberValue->IsUint8Array() ? V8Uint8Array::toImpl(v8::Handle<v8::Uint8Array>::Cast(uint8ArrayMemberValue)) : 0;
|
| + impl.setUint8ArrayMember(uint8ArrayMember);
|
| + }
|
| +
|
| }
|
|
|
| v8::Handle<v8::Value> toV8(const TestDictionary& impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
|
| @@ -404,6 +417,10 @@ void toV8TestDictionary(const TestDictionary& impl, v8::Handle<v8::Object> dicti
|
| dictionary->Set(v8String(isolate, "testInterfaceWillBeGarbageCollectedOrNullMember"), toV8(impl.testInterfaceWillBeGarbageCollectedOrNullMember(), creationContext, isolate));
|
| }
|
|
|
| + if (impl.hasUint8ArrayMember()) {
|
| + dictionary->Set(v8String(isolate, "uint8ArrayMember"), toV8(impl.uint8ArrayMember(), creationContext, isolate));
|
| + }
|
| +
|
| }
|
|
|
| TestDictionary NativeValueTraits<TestDictionary>::nativeValue(const v8::Handle<v8::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState)
|
|
|