IsConstructor
Rick Waldron
waldron.rick at gmail.com
Wed Jun 11 08:07:03 PDT 2014
On Wed, Jun 11, 2014 at 11:05 AM, Boris Zbarsky <bzbarsky at mit.edu> wrote:
> On 6/11/14, 10:58 AM, Rick Waldron wrote:
>
>> function isConstructor(C) {
>> try {
>> new C();
>>
>
> This will fail for constructors that require actual arguments, right?
>
This, as well as the other warning I posted.
Rick
>
> For example, this will fail if C === window.Worker in a browser.
>
> -Boris
>
> _______________________________________________
> 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/20140611/46b375b0/attachment.html>
More information about the es-discuss
mailing list