domenic at domenicdenicola.com (2014-06-20T19:23:08.256Z)
On Wed, Jun 11, 2014 at 11:05 AM, Boris Zbarsky <bzbarsky at mit.edu> wrote: > This will fail for constructors that require actual arguments, right? This, as well as the other warning I posted.
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>