Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Unified Diff: Source/bindings/v8/Dictionary.cpp

Issue 19457002: Make 'any'-typed attributes of events available in isolated worlds (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Properly refactored Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/v8/Dictionary.cpp
diff --git a/Source/bindings/v8/Dictionary.cpp b/Source/bindings/v8/Dictionary.cpp
index a25d7fa21a87d50d4ecf1f6bf8e2004379ef38c6..7824743b464fb4b5bbf9f9663c2183895d2081b5 100644
--- a/Source/bindings/v8/Dictionary.cpp
+++ b/Source/bindings/v8/Dictionary.cpp
@@ -178,6 +178,16 @@ bool Dictionary::get(const String& key, ScriptValue& value) const
return true;
}
+bool Dictionary::get(const String& key, RefPtr<SerializedScriptValue>& value) const
+{
+ v8::Local<v8::Value> v8Value;
+ if (!getKey(key, v8Value))
+ return false;
+
+ value = SerializedScriptValue::createSwallowExceptions(v8Value, m_isolate);
haraken 2013/07/18 00:00:29 Would you elaborate on why you want to ignore exce
adamk 2013/07/18 01:09:14 Note that this file is now gone. But in all the o
+ return true;
+}
+
bool Dictionary::get(const String& key, unsigned short& value) const
{
v8::Local<v8::Value> v8Value;

Powered by Google App Engine
This is Rietveld 408576698