Index: Source/core/html/track/vtt/VTTRegion.cpp |
diff --git a/Source/core/html/track/vtt/VTTRegion.cpp b/Source/core/html/track/vtt/VTTRegion.cpp |
index bceaeeaa9b6a8bb0f270d6a37323011df55cb9dc..bea2d7957b256dea83f40aac3b5235829ccefd91 100644 |
--- a/Source/core/html/track/vtt/VTTRegion.cpp |
+++ b/Source/core/html/track/vtt/VTTRegion.cpp |
@@ -75,7 +75,7 @@ static bool isInfiniteOrNonNumberOrNonPercentage(double value, const char* metho |
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; |