WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
87197
Web Inspector: Debugger should correctly show catch scope
https://bugs.webkit.org/show_bug.cgi?id=87197
Summary
Web Inspector: Debugger should correctly show catch scope
Peter Rybin
Reported
2012-05-22 19:39:36 PDT
Stop on breakpoint inside a catch block. See a lot of garbage variables under "Catch" scope in Scope Variables display. For example "__defineGetter__", "toLocaleString" etc. There shouldn't be them there. Additional test case: var toString = "Test"; try { throw "Hello"; } catch (e) { e = toString; e = 2; } break on the line "e = 2" Debugger shows that the innermost scope (Catch) has variable named "toString" that has function value. This is incorrect, because variable "e" has different value ("Test"). This means that the previous assigment statement doesn't see fake "toString" variable of the Catch scope.
Attachments
Patch
(1.95 KB, patch)
2012-05-22 23:19 PDT
,
Yury Semikhatsky
no flags
Details
Formatted Diff
Diff
Patch
(5.35 KB, patch)
2012-05-23 04:49 PDT
,
Yury Semikhatsky
vsevik
: review+
yurys
: commit-queue+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Yury Semikhatsky
Comment 1
2012-05-22 23:19:28 PDT
Created
attachment 143471
[details]
Patch
Pavel Feldman
Comment 2
2012-05-23 02:04:18 PDT
Comment on
attachment 143471
[details]
Patch Could you provide a test?
Yury Semikhatsky
Comment 3
2012-05-23 04:49:25 PDT
Created
attachment 143533
[details]
Patch
Yury Semikhatsky
Comment 4
2012-05-23 04:53:02 PDT
(In reply to
comment #2
)
> (From update of
attachment 143471
[details]
) > Could you provide a test?
Done.
Yury Semikhatsky
Comment 5
2012-05-23 05:00:20 PDT
Committed
r118161
: <
http://trac.webkit.org/changeset/118161
>
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