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

Summary: Support of arrow functions
Product: javascript Reporter: Petr Pisl <ppisl>
Component: EditorAssignee: Petr Hejl <phejl>
Status: RESOLVED FIXED    
Severity: normal CC: peterkehl
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 242387    
Attachments: with yesterday's trunk (on Win x64)

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.