Determine if a value is Callable/Constructible

Domenic Denicola d at
Mon Mar 30 18:05:28 UTC 2015

> It could still be identified as a “function” for compat with ES5, but the
> behaviour is different from any other sort of function, it should be
> identifiable as different.

Right, but again, I don't think the behavior is any different from `function f() { throw new TypeError(); }`, so whatever the test you write returns for classes, my position is that it should return the same thing for `f`.

More information about the es-discuss mailing list