WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
164262
Web Inspector: Jump to definition doesn't work for classes with a default constructor
https://bugs.webkit.org/show_bug.cgi?id=164262
Summary
Web Inspector: Jump to definition doesn't work for classes with a default con...
Ryosuke Niwa
Reported
2016-10-31 20:13:40 PDT
Created
attachment 293521
[details]
Demo Reproduction steps: 1. Open the attached file. 2. Type in "AB" in the console. 3. Right click on its constructor, and choose "Jump to Definition" Expected result: We jump to the class definition. Actual result: Nothing happens.
Attachments
Demo
(172 bytes, text/html)
2016-10-31 20:13 PDT
,
Ryosuke Niwa
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2016-10-31 20:14:00 PDT
<
rdar://problem/29037859
>
Joseph Pecoraro
Comment 2
2016-10-31 20:34:09 PDT
Ahh, so this is the case when the class has a default constructor. In which case the constructor is actually an anonymous script that looks like: (function() { super(...arguments); }) Which we hide by default because it doesn't have a name. In this case, it would make more sense for us to jump to the `class {}` definition. If JavaScriptCore has that location information, we could work out how to hook this up. (Maybe JSC doesn't, I don't know).
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