So function definitions are currently yanked to the top. This includes named functions.

However if a function is set to a variable, even if it is named, it is not yanked. Nor is the name exposed. My suggestion is that it is.

Namely, currently the following errors:
```js
module.exports.fnName2 = function fnName (){...}

fnName()
```

But I propose that it would not. Currently this can be gotten around by making it two lines, one to define the function and another to export it but that seems clunky 

Sebastian Malton

_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to