issue: function hoisting and parameter default value initialization

Andreas Rossberg rossberg at
Mon Oct 8 10:04:19 PDT 2012

On 8 October 2012 18:24, Allen Wirfs-Brock <allen at> wrote:
> You desugaring would break ES<=5.1 compatibility for:
> (unction (p) {
>    var p;
>    return typeof p
> })("test")
> ES5.1 returns "string", your desugaring returns "undefined"

I'm probably just being blind, but I'm not seeing it. Why?


More information about the es-discuss mailing list