Index: Source/bindings/v8/V8BindingMacros.h |
diff --git a/Source/bindings/v8/V8BindingMacros.h b/Source/bindings/v8/V8BindingMacros.h |
index ac4fa714f71defb4f72aff8f4672cd33a1e93dc9..1dc394acfe3ba66c63af186c05df988d07bff798 100644 |
--- a/Source/bindings/v8/V8BindingMacros.h |
+++ b/Source/bindings/v8/V8BindingMacros.h |
@@ -47,17 +47,16 @@ namespace WebCore { |
} |
#define TONATIVE_VOID_INTERNAL(var, value) \ |
- var = (value); \ |
- if (UNLIKELY(block.HasCaught())) { \ |
- block.ReThrow(); \ |
- return; \ |
- } |
+ var = (value); \ |
+ if (UNLIKELY(block.HasCaught())) \ |
+ return; |
-#define TONATIVE_VOID(type, var, value) \ |
- type var; \ |
- { \ |
- v8::TryCatch block; \ |
- TONATIVE_VOID_INTERNAL(var, value); \ |
+#define TONATIVE_VOID(type, var, value) \ |
+ type var; \ |
+ { \ |
+ v8::TryCatch block; \ |
+ V8RethrowTryCatchScope rethrow(block); \ |
+ TONATIVE_VOID_INTERNAL(var, value); \ |
} |
#define TONATIVE_DEFAULT(type, var, value, retVal) \ |
@@ -106,15 +105,7 @@ namespace WebCore { |
#define TOSTRING_VOID_INTERNAL(var, value) \ |
var = (value); \ |
- if (UNLIKELY(!var.prepare())) { \ |
- block.ReThrow(); \ |
- return; \ |
- } |
- |
-// There are no v8::TryCatch declared outside. |
-#define TOSTRING_VOID_INTERNAL_NOTRYCATCH(var, value) \ |
- var = (value); \ |
- if (UNLIKELY(!var.prepare())) \ |
+ if (UNLIKELY(!var.prepare())) \ |
return; |
#define TOSTRING_DEFAULT(type, var, value, retVal) \ |