Bug 145661 - Web Inspector: Class constructor appearing as Object Tree property does not include parameters
Summary: Web Inspector: Class constructor appearing as Object Tree property does not i...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: DoNotImportToRadar
Depends on:
Blocks:
 
Reported: 2015-06-04 14:43 PDT by Joseph Pecoraro
Modified: 2015-06-04 21:34 PDT (History)
8 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (11.00 KB, patch)
2015-06-04 14:48 PDT, Joseph Pecoraro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2015-06-04 14:43:58 PDT
* SUMMARY
Class constructor appearing as Object Tree property does not include parameters.

* TEST
<script>
var MyClass = class MyClass {
  constructor(name) {}
};

console.dir(new MyClass);
</script>

* STEPS TO REPRODUCE
1. Inspect test page
2. Expand MyClass's prototype
  => "constructor" should show "function(name)" instead shows just "function()"
Comment 1 Joseph Pecoraro 2015-06-04 14:48:41 PDT
Created attachment 254302 [details]
[PATCH] Proposed Fix
Comment 2 WebKit Commit Bot 2015-06-04 21:34:02 PDT
Comment on attachment 254302 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 254302

Committed r185237: <http://trac.webkit.org/changeset/185237>
Comment 3 WebKit Commit Bot 2015-06-04 21:34:05 PDT
All reviewed patches have been landed.  Closing bug.