[Webkit-unassigned] [Bug 187542] New: Web Inspector: console.log fires getters for deep properties

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 10 17:33:27 PDT 2018


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

            Bug ID: 187542
           Summary: Web Inspector: console.log fires getters for deep
                    properties
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: kierkegaurd at gmail.com
                CC: inspector-bugzilla-changes at group.apple.com

With the following code the "ref" getter will be called. This is inconsistent with Firefox and Chrome, which do not fire the getter.

```
let inner = {};

Object.defineProperty(inner, "ref", {
  get: () => console.log("getter fired"),
});

let outer = {
  inner
};

console.log(outer);

```


This came up in the React repo: https://github.com/facebook/react/issues/13179

-- 
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/20180711/90012284/attachment.html>


More information about the webkit-unassigned mailing list