Skip to content

ES.isCallable not spec compliant #48

@mhofman

Description

@mhofman

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions