function hoisting like var

Mike Shaver mike.shaver at gmail.com
Sun Jul 27 18:23:07 PDT 2008


On Sun, Jul 27, 2008 at 9:15 PM, Ingvar von Schoultz
<ingvar-v-s at comhem.se> wrote:
> Does it matter whether it's interpreted as an empty block or
> an empty discarded array?

It's not always discarded:

js> var x = 1
js> eval ("if (x) [1, 2, 3]")
1,2,3

Mike



More information about the Es4-discuss mailing list