ea04c6671a
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: Yang Guo <yangguo@chromium.org> Cr-Commit-Position: refs/heads/master@{#49152}
34 lines
787 B
Plaintext
34 lines
787 B
Plaintext
Runtime.getProperties for objects with accessor
|
|
title property with getter and setter:
|
|
{
|
|
configurable : false
|
|
enumerable : false
|
|
get : {
|
|
className : Function
|
|
description : function nativeGetter() { [native code] }
|
|
objectId : <objectId>
|
|
type : function
|
|
}
|
|
isOwn : true
|
|
name : title
|
|
set : {
|
|
className : Function
|
|
description : function nativeSetter() { [native code] }
|
|
objectId : <objectId>
|
|
type : function
|
|
}
|
|
}
|
|
title property with getter only:
|
|
{
|
|
configurable : false
|
|
enumerable : false
|
|
get : {
|
|
className : Function
|
|
description : function nativeGetter() { [native code] }
|
|
objectId : <objectId>
|
|
type : function
|
|
}
|
|
isOwn : true
|
|
name : title
|
|
}
|