Index: Source/core/html/TimeRanges.cpp |
diff --git a/Source/core/html/TimeRanges.cpp b/Source/core/html/TimeRanges.cpp |
index 219af3a312755b98203e60f60119487c670069f2..407ff32353beab5bb4b390e6b1e07e1da66ff4d0 100644 |
--- a/Source/core/html/TimeRanges.cpp |
+++ b/Source/core/html/TimeRanges.cpp |
@@ -26,7 +26,6 @@ |
#include "config.h" |
#include "core/html/TimeRanges.h" |
-#include "bindings/v8/ExceptionMessages.h" |
#include "bindings/v8/ExceptionState.h" |
#include "bindings/v8/ExceptionStatePlaceholder.h" |
#include "core/dom/ExceptionCode.h" |
@@ -117,7 +116,7 @@ void TimeRanges::unionWith(const TimeRanges* other) |
double TimeRanges::start(unsigned index, ExceptionState& exceptionState) const |
{ |
if (index >= length()) { |
- exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::failedToExecute("start", "TimeRanges", "The index provided (" + String::number(index) + ") is not less than the object's length (" + String::number(length()) + ").")); |
+ exceptionState.throwDOMException(IndexSizeError, "The index provided (" + String::number(index) + ") is not less than the object's length (" + String::number(length()) + ")."); |
return 0; |
} |
return m_ranges[index].m_start; |
@@ -126,7 +125,7 @@ double TimeRanges::start(unsigned index, ExceptionState& exceptionState) const |
double TimeRanges::end(unsigned index, ExceptionState& exceptionState) const |
{ |
if (index >= length()) { |
- exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::failedToExecute("end", "TimeRanges", "The index provided (" + String::number(index) + ") is not less than the object's length (" + String::number(length()) + ").")); |
+ exceptionState.throwDOMException(IndexSizeError, "The index provided (" + String::number(index) + ") is not less than the object's length (" + String::number(length()) + ")."); |
return 0; |
} |
return m_ranges[index].m_end; |