From: Axel Rauschmayer [mailto:[email protected]] 

> In some way, that would even be correct – depending on what you expect a 
> function to be: something callable or something constructible. Alas, there is 
> currently no simple way to distinguish “callable” and “constructible”.

Why do you say they're not callable?

Is this function callable?

    function f() {
      throw new TypeError("cannot call f because you're not pretty enough");
    }

what about


    function f() {
      throw new TypeError("Class constructors cannot be invoked without 'new'");
    }

?
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to