closure syntax

//  cluster.on('online', (worker) => {
cluster.on('online', function (worker) {

WebStorm editor flags the commented out line as an error. Code runs fine either way. Is this a known issue and is there a fix/workaround?
This is with node.js.
0
2 comments

Please make sure to set 'JavaScript language version' in Settings (Preferences)/Languages & Frameworks/JavaScript to 'ECMAScript 6'

0
Avatar
Vamsee Lakamsani

That works.  Thanks for your reply and the blog on setting up the transpiler in WS.

0

Please sign in to leave a comment.