[Webkit-unassigned] [Bug 137306] Web Inspector: Expanding event objects in console shows undefined for most values, it should have real values

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 19 14:13:46 PST 2015


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

--- Comment #12 from Joseph Pecoraro <joepeck at webkit.org> ---
Another way of thinking about this is to make the own properties visually distinct at the first level. If you have:

  function Foo() { this._foo = 5; }
  Foo.prototype = {
    __proto__: Object.prototype,
    get foo() { return this._foo; }
  };

Then showing the object:

  console.log(new Foo);

We will see:

  _foo // OWN property on the object itself
  foo  // getter from prototype chain (Foo.prototype.foo), not an OWN property, expect to see a "get foo" somewhere if you expand the prototype chain

This way if you have lots of properties that are actually getters in the prototype chain appearing at the top level they could be distinct from the real own properties that won't have anything higher up in the prototype chain.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150119/87e3bab0/attachment-0002.html>


More information about the webkit-unassigned mailing list