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

Unified Diff: Source/bindings/v8/Dictionary.cpp

Issue 173753002: Drop redundant 'ExceptionMessages::failedToXXX' calls. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline. Created 6 years, 10 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: Source/bindings/v8/Dictionary.cpp
diff --git a/Source/bindings/v8/Dictionary.cpp b/Source/bindings/v8/Dictionary.cpp
index 8fd6b183853f55c3e7d1f1474ad397d930383693..57313d3477459b53bd38df5f5828efa034c3bea1 100644
--- a/Source/bindings/v8/Dictionary.cpp
+++ b/Source/bindings/v8/Dictionary.cpp
@@ -750,12 +750,7 @@ Dictionary::ConversionContext& Dictionary::ConversionContext::setConversionType(
void Dictionary::ConversionContext::throwTypeError(const String& detail)
{
- if (forConstructor()) {
- exceptionState().throwTypeError(detail);
- } else {
- ASSERT(!methodName().isEmpty());
- exceptionState().throwTypeError(ExceptionMessages::failedToExecute(interfaceName(), methodName(), detail));
- }
+ exceptionState().throwTypeError(detail);
}
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698