Index: Source/bindings/templates/methods.cpp |
diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp |
index 9aa74a8ce90f8eb0f665851643932da20ece15f3..cebccd56e0efe56a9753191c38d87a195e659b18 100644 |
--- a/Source/bindings/templates/methods.cpp |
+++ b/Source/bindings/templates/methods.cpp |
@@ -564,7 +564,7 @@ bool {{v8_class}}::PrivateScript::{{method.name}}Method({{method.argument_declar |
{% if method.idl_type == 'void' %} |
PrivateScriptRunner::runDOMMethod(scriptState, "{{cpp_class}}", "{{method.name}}", holder, {{method.arguments | length}}, argv); |
if (block.HasCaught()) { |
- if (!PrivateScriptRunner::throwDOMExceptionInPrivateScriptIfNeeded(scriptState->isolate(), exceptionState, block.Exception())) { |
+ if (!PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->isolate(), exceptionState, block)) { |
// FIXME: We should support more exceptions. |
RELEASE_ASSERT_NOT_REACHED(); |
} |
@@ -574,7 +574,7 @@ bool {{v8_class}}::PrivateScript::{{method.name}}Method({{method.argument_declar |
{% else %} |
v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState, "{{cpp_class}}", "{{method.name}}", holder, {{method.arguments | length}}, argv); |
if (block.HasCaught()) { |
- if (!PrivateScriptRunner::throwDOMExceptionInPrivateScriptIfNeeded(scriptState->isolate(), exceptionState, block.Exception())) { |
+ if (!PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->isolate(), exceptionState, block)) { |
// FIXME: We should support more exceptions. |
RELEASE_ASSERT_NOT_REACHED(); |
} |