Index: Source/bindings/v8/Dictionary.cpp |
diff --git a/Source/bindings/v8/Dictionary.cpp b/Source/bindings/v8/Dictionary.cpp |
index a67c1f341b51a4fd9ccbfc7e1f7ff3e59a47546f..b95bed22a1af87e58838c60a18e4f655ee8e05bc 100644 |
--- a/Source/bindings/v8/Dictionary.cpp |
+++ b/Source/bindings/v8/Dictionary.cpp |
@@ -327,6 +327,18 @@ bool Dictionary::get(const String& key, RefPtr<Uint8Array>& value) const |
return true; |
} |
+bool Dictionary::get(const String& key, RefPtr<ArrayBufferView>& value) const |
+{ |
+ v8::Local<v8::Value> v8Value; |
+ if (!getKey(key, v8Value)) |
+ return false; |
+ |
+ value = 0; |
+ if (V8ArrayBufferView::HasInstance(v8Value, m_isolate, worldType(m_isolate))) |
+ value = V8ArrayBufferView::toNative(v8::Handle<v8::Object>::Cast(v8Value)); |
+ return true; |
+} |
+ |
bool Dictionary::get(const String& key, RefPtr<MIDIPort>& value) const |
{ |
v8::Local<v8::Value> v8Value; |