On Thu, Nov 29, 2012 at 8:49 AM, Kevin Smith <[email protected]> wrote:
>
> It's a bit unclear to me how arrow functions react to semicolons, for
>> example:
>>
>> var a = (c) => {
>> var b = 2;
>> b * c;
>> }
>>
>> a(4);
>>
>
> Hmmm... I was under the impression that arrow functions with normal
> function bodies do *not* implicitly return anything. Maybe I need to
> adjust my spec goggles, but I don't see that in the latest draft.
>
This is correct.
var a = (c) => {
var b = 2;
b * c;
}
a(4); // undefined
Rick
>
>
> Kevin
>
>
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
>
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss