[Harmony Proxies] Non-constructable, but callable function proxies

Tom Schuster tom at schuster.me
Sat Mar 12 02:29:28 PST 2011


the current definition of [[Construct]] doesn't allow to create
non-constructable objects, but instead just invokes the call handler.
On easy hackaround would be to check if the constructhandler has a
[[Construct]] internal method. Then you could create non constructable
Functions like this:

Proxy.createFunction({}, function () {}, parseInt);


More information about the es-discuss mailing list