>On Mar 30, 2015, at 12:20 PM, Domenic Denicola <[email protected]> wrote:
>
>Why do you say they're not callable?
>
>Is this function callable?
>
> function f() {
> throw new TypeError(“f immediately throws");
> }
I think there’s a distinction here.
`function f() {}` might throw when called, but that’s in the author of the
function’s control.
`class C {}` will always throw when called (in the current draft), so you can’t
“really” consider it callable. No user-authored code is invoked when
[[Call]]-ing a class constructor_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss