Typeof this in getters (was: eval on non-strings)

Rick Waldron waldron.rick at gmail.com
Tue Feb 28 12:58:02 PST 2012


On Tue, Feb 28, 2012 at 2:42 PM, Oliver Hunt <oliver at apple.com> wrote:

>
> On Feb 28, 2012, at 11:38 AM, Mark S. Miller wrote:
>
> I like the output display on http://jsfiddle.net/CxdMs/16/ a bit better.
> I just tried it on very recent versions of 4 or the 5 major browsers. I was
> shocked to see that all of them were wrong.
>
> Correct would be
>
>     number      number
>     object        object
>
>
I went to refresh myself on this and thought others might be interested in
reading the same: http://es5.github.com/#this-Number-value


>
> Chrome 19 gave
>
>     number      number
>     object        number
>
> Opera 12, Safari WebKit 5.1.3 (7534.53.10, r109097), and Mozilla FF
> Nightly 13 all gave
>
>     number      object
>     object        object
>
>
> We consider this a bug in JSC, in the great "make |this| correct"
> refactoring of 2011 we missed the getter/setter entries manually performing
> this conversion prior to calling the function proper...
>
> --Oliver
>
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120228/608d12ea/attachment.html>


More information about the es-discuss mailing list