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 166149 - Javascript parser doesn't understand "get" operator
Summary: Javascript parser doesn't understand "get" operator
Status: RESOLVED DUPLICATE of bug 195233
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-28 05:30 UTC by redoctober
Modified: 2011-02-09 12:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description redoctober 2009-05-28 05:30:03 UTC
Hi:

I was hoping to start developing Firefox plugins, and ran into a problem with the Javascript parser.  It doesn't seem to
understand the "get" operator
(https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/get_Operator).  For example,
the following source code would give problems to the parser:

var foo = {
   propertyA : "blah",
   get propertyB() {
     .....
   }
}

By problems, I mean the Navigator is blank (it will briefly flash "Please wait ..." before becoming blank) and the
syntax highlighting is messed up (e.g., the keyword "function" will only have "func" in deep blue and "tion" in light
blue).  If I change the above to:

var foo = {
   propertyA : "blah",
   propertyB : function() {
     .....
   }
}

then everything works (i.e., the aforementioned problems disappear).

Cheers,
LordK
Comment 1 Marek Fukala 2009-05-29 13:27:32 UTC
reproducible
Comment 2 emi 2011-02-09 12:20:27 UTC
Just posted in #195233 a patch which introduces getters and setters that are visible in navigator.

*** This bug has been marked as a duplicate of bug 195233 ***