| Index: third_party/WebKit/Source/bindings/core/v8/ExceptionMessages.h
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/ExceptionMessages.h b/third_party/WebKit/Source/bindings/core/v8/ExceptionMessages.h
|
| index 3a5804928b085fc877c09a99d67a03ed65162b9c..964ee4b3987a5d1c801aeec16f3cfc7390605e2c 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ExceptionMessages.h
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ExceptionMessages.h
|
| @@ -75,15 +75,15 @@
|
| {
|
| 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();
|
| }
|
|
|
| @@ -92,15 +92,15 @@
|
| {
|
| 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();
|
| }
|
|
|
| @@ -108,14 +108,14 @@
|
| 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('.');
|
|
|