| Index: Source/bindings/v8/custom/V8BlobCustomHelpers.cpp
|
| diff --git a/Source/bindings/v8/custom/V8BlobCustomHelpers.cpp b/Source/bindings/v8/custom/V8BlobCustomHelpers.cpp
|
| index 10c469344efbe4d3bea33c2115191f84806cb4da..e1dc9670436f49e5d68a54e436891ff11a046642 100644
|
| --- a/Source/bindings/v8/custom/V8BlobCustomHelpers.cpp
|
| +++ b/Source/bindings/v8/custom/V8BlobCustomHelpers.cpp
|
| @@ -69,10 +69,10 @@ void ParsedProperties::setDefaultLastModified()
|
|
|
| bool ParsedProperties::parseBlobPropertyBag(v8::Local<v8::Value> propertyBag, const char* blobClassName, ExceptionState& exceptionState, v8::Isolate* isolate)
|
| {
|
| - V8TRYCATCH_RETURN(Dictionary, dictionary, Dictionary(propertyBag, isolate), false);
|
| + TONATIVE_BOOL(Dictionary, dictionary, Dictionary(propertyBag, isolate), false);
|
|
|
| String endings;
|
| - V8TRYCATCH_RETURN(bool, containsEndings, dictionary.get("endings", endings), false);
|
| + TONATIVE_BOOL(bool, containsEndings, dictionary.get("endings", endings), false);
|
| if (containsEndings) {
|
| if (endings != "transparent" && endings != "native") {
|
| exceptionState.throwTypeError("The 'endings' property must be either 'transparent' or 'native'.");
|
| @@ -82,7 +82,7 @@ bool ParsedProperties::parseBlobPropertyBag(v8::Local<v8::Value> propertyBag, co
|
| m_normalizeLineEndingsToNative = true;
|
| }
|
|
|
| - V8TRYCATCH_RETURN(bool, containsType, dictionary.get("type", m_contentType), false);
|
| + TONATIVE_BOOL(bool, containsType, dictionary.get("type", m_contentType), false);
|
| if (containsType) {
|
| if (!m_contentType.containsOnlyASCII()) {
|
| exceptionState.throwDOMException(SyntaxError, "The 'type' property must consist of ASCII characters.");
|
| @@ -95,9 +95,9 @@ bool ParsedProperties::parseBlobPropertyBag(v8::Local<v8::Value> propertyBag, co
|
| return true;
|
|
|
| v8::Local<v8::Value> lastModified;
|
| - V8TRYCATCH_RETURN(bool, containsLastModified, dictionary.get("lastModified", lastModified), false);
|
| + TONATIVE_BOOL(bool, containsLastModified, dictionary.get("lastModified", lastModified), false);
|
| if (containsLastModified) {
|
| - V8TRYCATCH_RETURN(long long, lastModifiedInt, toInt64(lastModified), false);
|
| + TONATIVE_BOOL(long long, lastModifiedInt, toInt64(lastModified), false);
|
| setLastModified(static_cast<double>(lastModifiedInt) / msPerSecond);
|
| } else {
|
| setDefaultLastModified();
|
| @@ -126,7 +126,7 @@ bool processBlobParts(v8::Local<v8::Object> blobParts, uint32_t blobPartsLength,
|
| ASSERT(blob);
|
| blob->appendTo(blobData);
|
| } else {
|
| - V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN(V8StringResource<>, stringValue, item, false);
|
| + TOSTRING_BOOL(V8StringResource<>, stringValue, item, false);
|
| blobData.appendText(stringValue, normalizeLineEndingsToNative);
|
| }
|
| }
|
|
|