• Alexey Kozyatinskiy's avatar
    [inspector] do not call native accessor in Rumtime.getProperties · ea04c667
    Alexey Kozyatinskiy authored
    In current implementation Object.getOwnPropertyDescriptor calls native
    getter. It can produce side effects. We can avoid calling it.
    DevTools frontend will show clickable dots and on click returns value.
    This CL does not affect Blink and only affect several Node.js
    properties, e.g. process.title.
    
    R=yangguo@chromium.org
    
    Bug: v8:6945
    Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_chromium_rel_ng
    Change-Id: I5764c779ceed4d50832edf68b2b4c6ee2c2dd65c
    Reviewed-on: https://chromium-review.googlesource.com/754223
    Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
    Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#49152}
    ea04c667
runtime-get-properties-and-accessor.js 1.11 KB