Skip to content

question re proxy handler "apply" method #1565

Open
@jmdyck

Description

@jmdyck

Consider a proxy object whose handler has an "apply" method and whose target is not a function object.

It looks like, because target isn't callable, ProxyCreate would have created the proxy object without a [[Call]] internal method, so the proxy object isn't callable, even though there's that "apply" method that could service a call.

So if you want the handler's "apply" method to be invoked, you have to create the proxy with a target that's a function, even though the latter won't be called?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions