Read access to [[Class]]?

Axel Rauschmayer axel at rauschma.de
Fri Jan 27 04:27:47 PST 2012


I would still love to get read access to the [[Class]] property in ES.next.

Proposal: A function getTypeName().

- Primitives p: return typeof p (except: "null" for null)
- Objects o (including functions): return o.[[Class]]

Axel

-- 
Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120127/d71a5f8b/attachment.html>


More information about the es-discuss mailing list