[Webkit-unassigned] [Bug 45243] New: Exception.line is wrong script uses js getters or setters

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Sep 5 10:56:25 PDT 2010


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

           Summary: Exception.line is wrong script uses js getters or
                    setters
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: arno at renevier.net


Created an attachment (id=66600)
 --> (https://bugs.webkit.org/attachment.cgi?id=66600)
testcase

Hi,
when a js script uses getters and setters, line number reported by codeBlock is wrong.
This can be detected when checking line property of an exception.
I think this is because, when a setter or getter property is parsed, JSParser::parseObjectLiteral calls m_lexer->setOffset which resets offset without resetting line number. Then, line number is increased again when the getter/setter is a multiline function.

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