Bug 291132 - BreakpointLocationFinder skips ParenthesizedExpression
Summary: BreakpointLocationFinder skips ParenthesizedExpression
Status: VERIFIED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: Languages (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 0.9 M1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2009-10-01 19:41 EDT by Michael Schneider CLA
Modified: 2009-10-02 15:56 EDT (History)
1 user (show)

See Also:


Attachments
Proposed Patch (1.04 KB, patch)
2009-10-01 19:42 EDT, Michael Schneider CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Schneider CLA 2009-10-01 19:41:14 EDT
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
Build Identifier: HEAD

The expression node of ParenthesizedExpressions are not visited to find breakpoints, eg:

(function() {

var i= 1; // cant set breakpoint here

})();

Reproducible: Always
Comment 1 Michael Schneider CLA 2009-10-01 19:42:29 EDT
Created attachment 148598 [details]
Proposed Patch
Comment 2 Michael Rennie CLA 2009-10-02 15:55:57 EDT
Patch works perfectly. Applied to HEAD.

Thanks for the patch Michael
Comment 3 Michael Rennie CLA 2009-10-02 15:56:06 EDT
verified