| Index: third_party/WebKit/Source/platform/inspector_protocol/Parser.cpp
|
| diff --git a/third_party/WebKit/Source/platform/inspector_protocol/Parser.cpp b/third_party/WebKit/Source/platform/inspector_protocol/Parser.cpp
|
| index 1c267f871a96b2f56ce26cc07335873c37609b22..4193108b279162d232f681cdd0f74ff250c16fff 100644
|
| --- a/third_party/WebKit/Source/platform/inspector_protocol/Parser.cpp
|
| +++ b/third_party/WebKit/Source/platform/inspector_protocol/Parser.cpp
|
| @@ -382,7 +382,11 @@ std::unique_ptr<Value> buildValue(const UChar* start, const UChar* end, const UC
|
| double value = String16::charactersToDouble(tokenStart, tokenEnd - tokenStart, &ok);
|
| if (!ok)
|
| return nullptr;
|
| - result = FundamentalValue::create(value);
|
| + int number = static_cast<int>(value);
|
| + if (number == value)
|
| + result = FundamentalValue::create(number);
|
| + else
|
| + result = FundamentalValue::create(value);
|
| break;
|
| }
|
| case StringLiteral: {
|
|
|