[Webkit-unassigned] [Bug 187542] Web Inspector: console.log fires getters for deep properties
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Aug 10 15:07:27 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=187542
--- Comment #3 from Joseph Pecoraro <joepeck at webkit.org> ---
Switching to `console.log` to `console.trace` gives us:
[Log] Trace: getter fired Console Evaluation (Console Evaluation 1:6)
_isPreviewableObjectInternal
_appendPropertyPreviews
_generatePreview
RemoteObject
create
log
Console Evaluation (Console Evaluation 1:13)
evaluateWithScopeExtension
_evaluateOn
_evaluateAndWrap
It looks like at the bottom of _isPreviewableObjectInternal we access properties `object[propertyName]` without regard to whether or not it may be a getter.
_isPreviewableObjectInternal(object, knownObjects, depth)
{
...
// Objects are simple if they have 3 or less simple properties.
let ownPropertyNames = Object.getOwnPropertyNames(object);
if (ownPropertyNames.length > 3)
return false;
for (let i = 0; i < ownPropertyNames.length; ++i) {
let propertyName = ownPropertyNames[i];
if (!this._isPreviewableObjectInternal(object[propertyName], knownObjects, depth))
return false;
}
return true;
}
--
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/20180810/bf047b0d/attachment.html>
More information about the webkit-unassigned
mailing list