Object.getPrototypeOf(arguments) VS [[Class]]

Andrea Giammarchi andrea.giammarchi at gmail.com
Wed Nov 28 08:50:18 PST 2012

I just wonder if anyone can explain why functions arguments [[Class]] is
Arguments but Object.getPrototypeOf(arguments) is Object.prototype

This looks to me inconsistent against every other [[Class]] different from
Object case:either the class Arguments exists, or it doesn't, don't you

Object.getPrototypeOf(arguments) == Object.prototype; // true
) == {}.toString(); // true again

Thanks for clarifications.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121128/62fa0b09/attachment.html>

More information about the es-discuss mailing list