[Webkit-unassigned] [Bug 139655] New: 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 14:56:27 PST 2014


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

            Bug ID: 139655
           Summary: Web Inspector: functions and accessors not shown when
                    debugger paused in constructor
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: burg at cs.washington.edu
                CC: graouts at webkit.org, joepeck at webkit.org,
                    timothy at apple.com, webkit-bug-importer at group.apple.com

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; }
}

var f = new Foo();
f.luck = 4;
f.luck;
f.toString();

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


More information about the webkit-unassigned mailing list