RESOLVED FIXED 55220
Web Inspector: "length" getter is invoked upon console object formatting.
https://bugs.webkit.org/show_bug.cgi?id=55220
Summary Web Inspector: "length" getter is invoked upon console object formatting.
Pavel Feldman
Reported 2011-02-25 08:21:18 PST
Enter 'demo = {get length () {return this.a.length;}}' and submit. Read error "TypeError: Cannot read property 'length' of undefined". Reason is that array detection in the formatting code checks the length value. We should probably switch to testing whether length is enumerated instead.
Attachments
Patch (5.38 KB, patch)
2011-02-25 08:57 PST, Pavel Feldman
no flags
Pavel Feldman
Comment 1 2011-02-25 08:57:42 PST
Pavel Feldman
Comment 2 2011-03-09 01:54:20 PST
Comment on attachment 83819 [details] Patch Clearing flags on attachment: 83819 Committed r80628: <http://trac.webkit.org/changeset/80628>
Pavel Feldman
Comment 3 2011-03-09 01:54:28 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.