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 258678 - Support of arrow functions
Summary: Support of arrow functions
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks: 242387
  Show dependency tree
 
Reported: 2016-04-06 10:54 UTC by Petr Pisl
Modified: 2016-05-31 09:11 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
with yesterday's trunk (on Win x64) (25.78 KB, image/jpeg)
2016-05-31 01:59 UTC, peterkehl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2016-04-06 10:54:41 UTC
ECMA 6 Script brings arrow functions: 
https://developer.mozilla.org/cs/docs/Web/JavaScript/Reference/Functions/Arrow_functions

The arrow functions doesn't need a special action from the editor site, but needs to be checked hints and mark occurrences.
Comment 1 Petr Hejl 2016-04-13 15:17:22 UTC
I'll check this one.
Comment 2 Petr Hejl 2016-04-14 07:14:54 UTC
Everything seems to be working fine.
web-main 5e654d9ec168
Comment 3 peterkehl 2016-05-31 01:58:45 UTC
It seems no to work all the time. Following doesn't parse well in yesterday's trunk build. Screenshot attached.

promise.then(
    (url)=> {
        if( goAhead ) {
        }
    }
);

Thank you for your support over years.
-Peter Kehl
Comment 4 peterkehl 2016-05-31 01:59:53 UTC
Created attachment 159922 [details]
with yesterday's trunk (on Win x64)
Comment 5 Petr Hejl 2016-05-31 09:11:59 UTC
The feature is not in trunk it is on branch and will be merged later.