Bug 145391

Summary: Web Inspector: Function parameter string parsing improperly handles empty parameter list
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: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed Fix none

Description Joseph Pecoraro 2015-05-26 15:19:14 PDT
* SUMMARY
Function parameter string parsing improperly handles empty parameter list

* TEST
<script>
function Foo(){}
Foo.prototype.foo = function (){var a=(new m["default"])}
console.log(new Foo); // expand the Prototype to see Foo.prototype.foo
</script>

* ACTUAL
foo(new m["default"])

* EXPECTED
foo()
Comment 1 Radar WebKit Bug Importer 2015-05-26 15:19:33 PDT
<rdar://problem/21112413>
Comment 2 Joseph Pecoraro 2015-05-26 15:20:36 PDT
Created attachment 253746 [details]
[PATCH] Proposed Fix
Comment 3 WebKit Commit Bot 2015-05-26 16:11:29 PDT
Comment on attachment 253746 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 253746

Committed r184887: <http://trac.webkit.org/changeset/184887>
Comment 4 WebKit Commit Bot 2015-05-26 16:11:34 PDT
All reviewed patches have been landed.  Closing bug.