| Index: Source/core/html/TimeRanges.cpp
|
| diff --git a/Source/core/html/TimeRanges.cpp b/Source/core/html/TimeRanges.cpp
|
| index bdf477b72029fa06e1f03e3f4f62c0f3d9a5c1ca..67c4cf9ae02ab21319b48df335b8475577e3c4c8 100644
|
| --- a/Source/core/html/TimeRanges.cpp
|
| +++ b/Source/core/html/TimeRanges.cpp
|
| @@ -26,6 +26,7 @@
|
| #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"
|
| @@ -116,7 +117,7 @@ void TimeRanges::unionWith(const TimeRanges* other)
|
| double TimeRanges::start(unsigned index, ExceptionState& exceptionState) const
|
| {
|
| if (index >= length()) {
|
| - exceptionState.throwDOMException(IndexSizeError, "The index provided (" + String::number(index) + ") is not less than the object's length (" + String::number(length()) + ").");
|
| + exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::indexExceedsMaximumBound("index", index, length()));
|
| return 0;
|
| }
|
| return m_ranges[index].m_start;
|
| @@ -125,7 +126,7 @@ double TimeRanges::start(unsigned index, ExceptionState& exceptionState) const
|
| double TimeRanges::end(unsigned index, ExceptionState& exceptionState) const
|
| {
|
| if (index >= length()) {
|
| - exceptionState.throwDOMException(IndexSizeError, "The index provided (" + String::number(index) + ") is not less than the object's length (" + String::number(length()) + ").");
|
| + exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::indexExceedsMaximumBound("index", index, length()));
|
| return 0;
|
| }
|
| return m_ranges[index].m_end;
|
|
|