| Index: Source/bindings/templates/methods.cpp
|
| diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp
|
| index a7733bc9d8386b7c2f60793b417a4f9d0b38f431..12d5188763a1d4b97f258ce8052816fb6eb64b57 100644
|
| --- a/Source/bindings/templates/methods.cpp
|
| +++ b/Source/bindings/templates/methods.cpp
|
| @@ -529,14 +529,17 @@ 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()) {
|
| - PrivateScriptRunner::throwDOMExceptionInPrivateScriptIfNeeded(scriptState->isolate(), exceptionState, block.Exception());
|
| + if (!PrivateScriptRunner::throwDOMExceptionInPrivateScriptIfNeeded(scriptState->isolate(), exceptionState, block.Exception())) {
|
| + // FIXME: We should support more exceptions.
|
| + RELEASE_ASSERT_NOT_REACHED();
|
| + }
|
| return false;
|
| }
|
| {% 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())) {
|
| - // FIXME: We should support exceptions other than DOM exceptions.
|
| + // FIXME: We should support more exceptions.
|
| RELEASE_ASSERT_NOT_REACHED();
|
| }
|
| return false;
|
|
|