| Index: Source/bindings/v8/Dictionary.cpp
|
| diff --git a/Source/bindings/v8/Dictionary.cpp b/Source/bindings/v8/Dictionary.cpp
|
| index ced0df3180baa0d21faaa2583b1f898d0ba48868..daa3e7b589f6c9f084dc6942c90e094f32f12796 100644
|
| --- a/Source/bindings/v8/Dictionary.cpp
|
| +++ b/Source/bindings/v8/Dictionary.cpp
|
| @@ -208,7 +208,7 @@ inline bool Dictionary::getStringType(const String& key, StringType& value) cons
|
| if (!getKey(key, v8Value))
|
| return false;
|
|
|
| - V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN(V8StringResource<>, stringValue, v8Value, false);
|
| + V8STRINGRESOURCE_PREPARE_RETURN(V8StringResource<>, stringValue, v8Value, false);
|
| value = stringValue;
|
| return true;
|
| }
|
| @@ -231,7 +231,7 @@ bool Dictionary::convert(ConversionContext& context, const String& key, String&
|
| if (!getKey(key, v8Value))
|
| return true;
|
|
|
| - V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN(V8StringResource<>, stringValue, v8Value, false);
|
| + V8STRINGRESOURCE_PREPARE_RETURN(V8StringResource<>, stringValue, v8Value, false);
|
| value = stringValue;
|
| return true;
|
| }
|
| @@ -383,7 +383,7 @@ bool Dictionary::get(const String& key, HashSet<AtomicString>& value) const
|
| v8::Local<v8::Array> v8Array = v8::Local<v8::Array>::Cast(v8Value);
|
| for (size_t i = 0; i < v8Array->Length(); ++i) {
|
| v8::Local<v8::Value> indexedValue = v8Array->Get(v8::Integer::New(m_isolate, i));
|
| - V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN(V8StringResource<>, stringValue, indexedValue, false);
|
| + V8STRINGRESOURCE_PREPARE_RETURN(V8StringResource<>, stringValue, indexedValue, false);
|
| value.add(stringValue);
|
| }
|
|
|
| @@ -415,7 +415,7 @@ bool Dictionary::getWithUndefinedOrNullCheck(const String& key, String& value) c
|
| if (!getKey(key, v8Value) || WebCore::isUndefinedOrNull(v8Value))
|
| return false;
|
|
|
| - V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN(V8StringResource<>, stringValue, v8Value, false);
|
| + V8STRINGRESOURCE_PREPARE_RETURN(V8StringResource<>, stringValue, v8Value, false);
|
| value = stringValue;
|
| return true;
|
| }
|
| @@ -600,7 +600,7 @@ bool Dictionary::get(const String& key, Vector<String>& value) const
|
| v8::Local<v8::Array> v8Array = v8::Local<v8::Array>::Cast(v8Value);
|
| for (size_t i = 0; i < v8Array->Length(); ++i) {
|
| v8::Local<v8::Value> indexedValue = v8Array->Get(v8::Uint32::New(m_isolate, i));
|
| - V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN(V8StringResource<>, stringValue, indexedValue, false);
|
| + V8STRINGRESOURCE_PREPARE_RETURN(V8StringResource<>, stringValue, indexedValue, false);
|
| value.append(stringValue);
|
| }
|
|
|
| @@ -701,8 +701,8 @@ bool Dictionary::getOwnPropertiesAsStringHashMap(HashMap<String, String>& hashMa
|
| continue;
|
|
|
| v8::Local<v8::Value> value = options->Get(key);
|
| - V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN(V8StringResource<>, stringKey, key, false);
|
| - V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN(V8StringResource<>, stringValue, value, false);
|
| + V8STRINGRESOURCE_PREPARE_RETURN(V8StringResource<>, stringKey, key, false);
|
| + V8STRINGRESOURCE_PREPARE_RETURN(V8StringResource<>, stringValue, value, false);
|
| if (!static_cast<const String&>(stringKey).isEmpty())
|
| hashMap.set(stringKey, stringValue);
|
| }
|
| @@ -726,7 +726,7 @@ bool Dictionary::getOwnPropertyNames(Vector<String>& names) const
|
| v8::Local<v8::String> key = properties->Get(i)->ToString();
|
| if (!options->Has(key))
|
| continue;
|
| - V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN(V8StringResource<>, stringKey, key, false);
|
| + V8STRINGRESOURCE_PREPARE_RETURN(V8StringResource<>, stringKey, key, false);
|
| names.append(stringKey);
|
| }
|
|
|
|
|