| Index: Source/core/html/forms/NumberInputType.cpp
|
| diff --git a/Source/core/html/forms/NumberInputType.cpp b/Source/core/html/forms/NumberInputType.cpp
|
| index 3c7414859306b3187e529156e27fd95e9a8aae99..d4fde9934df7563fbee587db1800bde12f59d7ae 100644
|
| --- a/Source/core/html/forms/NumberInputType.cpp
|
| +++ b/Source/core/html/forms/NumberInputType.cpp
|
| @@ -127,11 +127,11 @@ void NumberInputType::setValueAsDouble(double newValue, TextFieldEventBehavior e
|
| // FIXME: We should use numeric_limits<double>::max for number input type.
|
| const double floatMax = numeric_limits<float>::max();
|
| if (newValue < -floatMax) {
|
| - es.throwDOMException(InvalidStateError);
|
| + es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return;
|
| }
|
| if (newValue > floatMax) {
|
| - es.throwDOMException(InvalidStateError);
|
| + es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return;
|
| }
|
| element()->setValue(serializeForNumberType(newValue), eventBehavior);
|
| @@ -142,11 +142,11 @@ void NumberInputType::setValueAsDecimal(const Decimal& newValue, TextFieldEventB
|
| // FIXME: We should use numeric_limits<double>::max for number input type.
|
| const Decimal floatMax = Decimal::fromDouble(numeric_limits<float>::max());
|
| if (newValue < -floatMax) {
|
| - es.throwDOMException(InvalidStateError);
|
| + es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return;
|
| }
|
| if (newValue > floatMax) {
|
| - es.throwDOMException(InvalidStateError);
|
| + es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return;
|
| }
|
| element()->setValue(serializeForNumberType(newValue), eventBehavior);
|
|
|