Index: Source/bindings/tests/results/V8TestInterfaceNode.cpp |
diff --git a/Source/bindings/tests/results/V8TestInterfaceNode.cpp b/Source/bindings/tests/results/V8TestInterfaceNode.cpp |
index 45289a05be1998bc5cc7a4e30a8bc1cde7c01126..d25f0fd0fee29caa987726cf033c6b786ab97f53 100644 |
--- a/Source/bindings/tests/results/V8TestInterfaceNode.cpp |
+++ b/Source/bindings/tests/results/V8TestInterfaceNode.cpp |
@@ -249,11 +249,15 @@ static void perWorldBindingsTestInterfaceEmptyMethodMethodCallbackForMainWorld(c |
static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder()); |
- if (UNLIKELY(info.Length() <= 0)) { |
- v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg()), impl); |
- return; |
+ bool optionalBooleanArgument; |
+ { |
+ v8::TryCatch block; |
+ if (UNLIKELY(info.Length() <= 0)) { |
+ v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg()), impl); |
+ return; |
+ } |
+ TONATIVE_VOID_NO_DECL(optionalBooleanArgument, info[0]->BooleanValue()); |
} |
- TONATIVE_VOID(bool, optionalBooleanArgument, info[0]->BooleanValue()); |
v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg(optionalBooleanArgument)), impl); |
} |
@@ -267,11 +271,15 @@ static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall |
static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder()); |
- if (UNLIKELY(info.Length() <= 0)) { |
- v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg())); |
- return; |
+ bool optionalBooleanArgument; |
+ { |
+ v8::TryCatch block; |
+ if (UNLIKELY(info.Length() <= 0)) { |
+ v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg())); |
+ return; |
+ } |
+ TONATIVE_VOID_NO_DECL(optionalBooleanArgument, info[0]->BooleanValue()); |
} |
- TONATIVE_VOID(bool, optionalBooleanArgument, info[0]->BooleanValue()); |
v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg(optionalBooleanArgument))); |
} |