Bug 145391 - Web Inspector: Function parameter string parsing improperly handles empty parameter list
Summary: Web Inspector: Function parameter string parsing improperly handles empty par...
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: InRadar
Depends on:
Blocks:
 
Reported: 2015-05-26 15:19 PDT by Joseph Pecoraro
Modified: 2015-05-26 16:11 PDT (History)
8 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (1.45 KB, patch)
2015-05-26 15:20 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-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.