| Index: Source/bindings/core/v8/ExceptionMessages.h
|
| diff --git a/Source/bindings/core/v8/ExceptionMessages.h b/Source/bindings/core/v8/ExceptionMessages.h
|
| index 3712e7360e9770267ee022e519ced8cc2647affc..0ba8d7bfa6646792ca746150514eba3ad594b8e1 100644
|
| --- a/Source/bindings/core/v8/ExceptionMessages.h
|
| +++ b/Source/bindings/core/v8/ExceptionMessages.h
|
| @@ -72,15 +72,15 @@ public:
|
| {
|
| bool eq = given == bound;
|
| StringBuilder result;
|
| - result.append("The ");
|
| + result.appendLiteral("The ");
|
| result.append(name);
|
| - result.append(" provided (");
|
| + result.appendLiteral(" provided (");
|
| result.append(formatNumber(given));
|
| - result.append(") is greater than ");
|
| + result.appendLiteral(") is greater than ");
|
| result.append(eq ? "or equal to " : "");
|
| - result.append("the maximum bound (");
|
| + result.appendLiteral("the maximum bound (");
|
| result.append(formatNumber(bound));
|
| - result.append(").");
|
| + result.appendLiteral(").");
|
| return result.toString();
|
| }
|
|
|
| @@ -89,15 +89,15 @@ public:
|
| {
|
| bool eq = given == bound;
|
| StringBuilder result;
|
| - result.append("The ");
|
| + result.appendLiteral("The ");
|
| result.append(name);
|
| - result.append(" provided (");
|
| + result.appendLiteral(" provided (");
|
| result.append(formatNumber(given));
|
| - result.append(") is less than ");
|
| + result.appendLiteral(") is less than ");
|
| result.append(eq ? "or equal to " : "");
|
| - result.append("the minimum bound (");
|
| + result.appendLiteral("the minimum bound (");
|
| result.append(formatNumber(bound));
|
| - result.append(").");
|
| + result.appendLiteral(").");
|
| return result.toString();
|
| }
|
|
|
| @@ -105,14 +105,14 @@ public:
|
| static String indexOutsideRange(const char* name, NumberType given, NumberType lowerBound, BoundType lowerType, NumberType upperBound, BoundType upperType)
|
| {
|
| StringBuilder result;
|
| - result.append("The ");
|
| + result.appendLiteral("The ");
|
| result.append(name);
|
| - result.append(" provided (");
|
| + result.appendLiteral(" provided (");
|
| result.append(formatNumber(given));
|
| - result.append(") is outside the range ");
|
| + result.appendLiteral(") is outside the range ");
|
| result.append(lowerType == ExclusiveBound ? '(' : '[');
|
| result.append(formatNumber(lowerBound));
|
| - result.append(", ");
|
| + result.appendLiteral(", ");
|
| result.append(formatNumber(upperBound));
|
| result.append(upperType == ExclusiveBound ? ')' : ']');
|
| result.append('.');
|
|
|