Bug 145661

Summary: Web Inspector: Class constructor appearing as Object Tree property does not include parameters
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Joseph Pecoraro <joepeck>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, graouts, joepeck, jonowells, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: DoNotImportToRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed Fix none

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.