| Index: Source/bindings/v8/V8BindingMacros.h
|
| diff --git a/Source/bindings/v8/V8BindingMacros.h b/Source/bindings/v8/V8BindingMacros.h
|
| index 53416e5e654f11c8f4b597e0d62973612d22ef2f..5f194123e54d36d1dd42b274da4451b55fa96d47 100644
|
| --- a/Source/bindings/v8/V8BindingMacros.h
|
| +++ b/Source/bindings/v8/V8BindingMacros.h
|
| @@ -85,10 +85,13 @@ namespace WebCore {
|
| } \
|
| }
|
|
|
| +#define V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN(type, var, value, retVal) \
|
| + type var(value); \
|
| + if (!var.prepare()) \
|
| + return retVal;
|
| +
|
| #define V8TRYCATCH_FOR_V8STRINGRESOURCE(type, var, value) \
|
| - type var(value); \
|
| - if (!var.prepare()) \
|
| - return v8::Undefined();
|
| + V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN(type, var, value, v8::Undefined());
|
|
|
| #define V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(type, var, value) \
|
| type var(value); \
|
|
|