[Webkit-unassigned] [Bug 66680] New: Line numbers of Errors are too high in scripts containing objects that define getters

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 22 10:14:25 PDT 2011


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

           Summary: Line numbers of Errors are too high in scripts
                    containing objects that define getters
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: nathan.whetsell at gmail.com
                CC: rackley at atlassian.com


Created an attachment (id=104690)
 --> (https://bugs.webkit.org/attachment.cgi?id=104690&action=review)
Test case

If a file contains a script like

DummyClass = function() {};
DummyClass.prototype = {
    get dummyGetter() { return null; }
};

and then throw an Error, the Error's line number property will be too high.

I've attached a simple test case to show this behavior.

This is probably related to (and may even be a duplicate of) bug #59926, but I'm reporting it as a new bug because the attached test doesn't require the Web Inspector's debugger.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list