This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 195233 - Javascript getters and setters patch
Summary: Javascript getters and setters patch
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0
Hardware: PC All
: P3 normal with 2 votes (vote)
Assignee: Petr Hejl
URL:
Keywords:
: 155929 166149 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-02-09 12:15 UTC by emi
Modified: 2012-09-19 09:13 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch as a Mercurial bundle (14.75 KB, application/octet-stream)
2011-02-09 12:15 UTC, emi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emi 2011-02-09 12:15:14 UTC
Created attachment 105790 [details]
Patch as a Mercurial bundle

Hy,

See the attached mercurial bundle (use unbundle to apply) which introduces support for Javascript getters and setters.

Something like

{
    set name(x){
    }
}

will be properly parsed and displayed by the navigator.

Let me know if my patch needs any tweaks.
Comment 1 emi 2011-02-09 12:18:05 UTC
*** Bug 155929 has been marked as a duplicate of this bug. ***
Comment 2 emi 2011-02-09 12:20:27 UTC
*** Bug 166149 has been marked as a duplicate of this bug. ***
Comment 3 Petr Hejl 2012-09-19 09:13:10 UTC
This is already implemented in new JS support in 7.3.