this vs thi\u0073

Mike Samuel mikesamuel at gmail.com
Tue Jun 21 11:48:48 PDT 2011


2011/6/21 Mike Samuel <mikesamuel at gmail.com>:
> In that case, we still have at least 3 (haven't tested IE) of 4 major
> browsers agreeing that the illegal EcmaScript program
>
>    this.\u0069\u0066 = function () { alert("called \u0069\u0066"); };
>
>    \u0069\u0066(false)
>    alert(1);
>
> should be interpreted as a call via the reference "if" followed by a
> call via the reference "alert".

I tested on IE 7 and IE 8 and they both reject the above.


More information about the es-discuss mailing list