Alan Schmitt alan.schmitt at polytechnique.org
Sun Jun 2 02:24:57 PDT 2013

Axel Rauschmayer writes:

>     Also a function returns a value, does a block evaluate to something?
> No it doesn’t.

I thought they did evaluate to a "completion type":

One can see this using an Expression statement
(http://es5.github.io/#x12.4) and `eval'. For instance, after running
x = eval("{ 5; 4 }")
x will be bound to 4.


More information about the es-discuss mailing list