[Webkit-unassigned] [Bug 139655] Web Inspector: functions and accessors not shown when debugger paused in constructor

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 15 15:05:50 PST 2014


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

--- Comment #2 from Joseph Pecoraro <joepeck at webkit.org> ---
(In reply to comment #0)
> As I understand it, the new operator creates an empty object, sets the
> prototype field, then calls the constructor. However, functions from the
> prototype do not show up in autocomplete or the details sidebar when the
> debugger pauses within a constructor.
> 
> Test case:
> 
> Foo = new function() {
>     this._luckyNumber = 3;
>     debugger;
> }
> 
> Foo.prototype = {
>     get luck() { return this._luckyNumber; },
>     set luck(v) { this._luckyNumber = v; },
>     toString: function() { return "" + this._luckyNumber; }
> }

Also, as written the debugger pauses inside the "new function" without having assigned the prototype yet. So the debugger was behaving correctly then.

-- 
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/20141215/aa379d6d/attachment-0002.html>


More information about the webkit-unassigned mailing list