Index: third_party/WebKit/Source/bindings/templates/interface.cpp |
diff --git a/third_party/WebKit/Source/bindings/templates/interface.cpp b/third_party/WebKit/Source/bindings/templates/interface.cpp |
index a6a140bb19b054d8913e69416e0e83a255ee629e..5bdcb4147e67117f5bbffa1664b3cdf92c07aa9f 100644 |
--- a/third_party/WebKit/Source/bindings/templates/interface.cpp |
+++ b/third_party/WebKit/Source/bindings/templates/interface.cpp |
@@ -545,7 +545,7 @@ static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
{# Report full list of valid arities if gaps and above minimum #} |
{% if constructor_overloads.valid_arities %} |
if (info.Length() >= {{constructor_overloads.length}}) { |
- setArityTypeError(exceptionState, "{{constructor_overloads.valid_arities}}", info.Length()); |
+ throwInvalidArityError(exceptionState, "{{constructor_overloads.valid_arities}}", info.Length()); |
return; |
} |
{% endif %} |
@@ -560,6 +560,7 @@ static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
{% endif %} |
{% endblock %} |
+ |
{##############################################################################} |
{% block visit_dom_wrapper %} |
{% if has_visit_dom_wrapper %} |
@@ -745,6 +746,7 @@ v8::Local<v8::FunctionTemplate> {{v8_class}}::domTemplateForNamedPropertiesObjec |
{% endif %} |
{% endblock %} |
+ |
{##############################################################################} |
{% block has_instance %} |
{% if not is_array_buffer_or_view %} |