Index: Source/core/html/track/vtt/VTTCue.cpp |
diff --git a/Source/core/html/track/vtt/VTTCue.cpp b/Source/core/html/track/vtt/VTTCue.cpp |
index 9bece55a2cd67cc65e438deb1e687de5a7dea420..e3ae74710f4e21122be1b691a4d62b5f5e4c75b8 100644 |
--- a/Source/core/html/track/vtt/VTTCue.cpp |
+++ b/Source/core/html/track/vtt/VTTCue.cpp |
@@ -120,7 +120,7 @@ static bool isInvalidPercentage(double value, ExceptionState& exceptionState) |
if (TextTrackCue::isInfiniteOrNonNumber(value, exceptionState)) |
return true; |
if (value < 0 || value > 100) { |
- exceptionState.throwDOMException(IndexSizeError, "The value provided (" + String::number(value) + ") is not between 0 and 100."); |
+ exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::indexOutsideRange("value", value, 0.0, ExceptionMessages::InclusiveBound, 100.0, ExceptionMessages::InclusiveBound)); |
return true; |
} |
return false; |