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

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

Issue 2061113002: Remove ExceptionState::throwIfNeeded Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 5 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/utilities.cpp
diff --git a/third_party/WebKit/Source/bindings/templates/utilities.cpp b/third_party/WebKit/Source/bindings/templates/utilities.cpp
index 1ba1dfe8d83da5deb4ed2df85156fcdda905435c..181f3b3e0b3cabc931a39a16bdf1c4512c2efc6e 100644
--- a/third_party/WebKit/Source/bindings/templates/utilities.cpp
+++ b/third_party/WebKit/Source/bindings/templates/utilities.cpp
@@ -24,8 +24,10 @@
{{item.set_expression}};
{% endif %}
{% if item.check_expression %}
-if ({{item.check_expression}})
+if ({{item.check_expression}}) {
+ {% if item.clear_exception %}{{item.clear_exception}};{% endif %}
return{% if item.return_expression %} {{item.return_expression}}{% endif %};
+ }
{% endif %}{# item.check_expression #}
{% endif %}{# item.error_message #}
{% endmacro %}

Powered by Google App Engine
This is Rietveld 408576698