Changeset 64040 in webkit


Ignore:
Timestamp:
Jul 26, 2010 4:21:47 AM (14 years ago)
Author:
pfeldman@chromium.org
Message:

2010-07-26 Pavel Feldman <pfeldman@chromium.org>

Reviewed by Shinichiro Hamaji.

Web Inspector: make sure proxy objects are JSON-stringifiable.

https://bugs.webkit.org/show_bug.cgi?id=42961

  • inspector/front-end/InjectedScript.js: (injectedScriptConstructor):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r64037 r64040  
     12010-07-26  Pavel Feldman  <pfeldman@chromium.org>
     2
     3        Reviewed by Shinichiro Hamaji.
     4
     5        Web Inspector: make sure proxy objects are JSON-stringifiable.
     6
     7        https://bugs.webkit.org/show_bug.cgi?id=42961
     8
     9        * inspector/front-end/InjectedScript.js:
     10        (injectedScriptConstructor):
     11
    1122010-07-26  Alexander Pavlov  <apavlov@chromium.org>
    213
  • trunk/WebCore/inspector/front-end/InjectedScript.js

    r64021 r64040  
    389389    var type = typeof object;
    390390   
    391     result.hasChildren = (type === "object" && object !== null && (Object.getOwnPropertyNames(object).length || object.__proto__)) || type === "function";
     391    result.hasChildren = (type === "object" && object !== null && (Object.getOwnPropertyNames(object).length || !!object.__proto__)) || type === "function";
    392392    try {
    393393        result.description = InjectedScript._describe(object, abbreviate);
Note: See TracChangeset for help on using the changeset viewer.