Skip to content

callable proxies support #935

@ChALkeR

Description

@ChALkeR
const p = new Proxy(() => {}, { apply() { return 2 } })
print(p())

Fails with Uncaught exception: TypeError: Not a callable object, should print 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions