-
-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
It looks like ES.isCallable simply leverages the is-callable package. However as noted in inspect-js/is-callable#16, that implementation is not equivalent to the IsCallable from the spec.
Class constructors do have a [[Call]] internal slot which makes them callable.
The [[Call]] internal method throws TypeError if [[FunctionKind]] == "classConstructor", but that's simply the implementation of the internal method.
Metadata
Metadata
Assignees
Labels
No labels