Chromium Code Reviews| 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; |