| Index: Source/devtools/front_end/RemoteObject.js
|
| diff --git a/Source/devtools/front_end/RemoteObject.js b/Source/devtools/front_end/RemoteObject.js
|
| index 8af134404c5f7e6624c2e9742e76d9873d50b5cd..67326ec6cedae5dfe7240a170eba92b3861244f8 100644
|
| --- a/Source/devtools/front_end/RemoteObject.js
|
| +++ b/Source/devtools/front_end/RemoteObject.js
|
| @@ -285,8 +285,8 @@ WebInspector.RemoteObject.prototype = {
|
| // where property was defined; so do we.
|
| var setPropertyValueFunction = "function(a, b) { this[a] = b; }";
|
|
|
| - // Special case for NaN, Infinity and -Infinity
|
| - if (result.type === "number" && typeof result.value !== "number")
|
| + // Special case for NaN, Infinity, -Infinity, -0.
|
| + if (result.type === "number" && String(result.value) !== result.description)
|
| setPropertyValueFunction = "function(a) { this[a] = " + result.description + "; }";
|
|
|
| delete result.description; // Optimize on traffic.
|
|
|