Determine if a value is Callable/Constructible

Kevin Smith zenparsing at gmail.com
Mon Mar 30 18:06:13 UTC 2015


>
>
> That distinction means that you can’t “really” [[Call]] a constructor,
> it’s just that the reason is slightly different from trying to [[Call]] an
> Array instance (or something)
>

Another way to look at the situation is that, by default, calling a class
constructor will throw an error.  That default may be changed however.
Just not with ES6 : )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150330/2ce2511b/attachment.html>


More information about the es-discuss mailing list