WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
45243
Exception.line is wrong script uses js getters or setters
https://bugs.webkit.org/show_bug.cgi?id=45243
Summary
Exception.line is wrong script uses js getters or setters
arno.
Reported
2010-09-05 10:56:25 PDT
Created
attachment 66600
[details]
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.
Attachments
testcase
(267 bytes, application/javascript)
2010-09-05 10:56 PDT
,
arno.
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
arno.
Comment 1
2010-09-05 11:00:03 PDT
Ccing because setOffset calls were added in
bug #41892
http://trac.webkit.org/changeset/62848
Gavin Barraclough
Comment 2
2012-03-07 17:40:00 PST
Works for me in
r110120
, please repoen if you are still seeing a bug here.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug