Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(749)

Unified Diff: third_party/WebKit/Source/bindings/templates/interface.cpp

Issue 2301993002: binding: Introduces ExceptionToPromiseScope. (Closed)
Patch Set: . Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 %}

Powered by Google App Engine
This is Rietveld 408576698