Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question re proxy handler "apply" method #1565

Open
jmdyck opened this issue Jun 1, 2019 · 1 comment
Open

question re proxy handler "apply" method #1565

jmdyck opened this issue Jun 1, 2019 · 1 comment
Labels

Comments

@jmdyck
Copy link
Collaborator

jmdyck commented Jun 1, 2019

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?

@jmdyck jmdyck added the question label Jun 1, 2019
@ljharb
Copy link
Member

ljharb commented Jun 1, 2019

related to #814

Yes, i believe that is the case.

cc @erights and @tvcutsem for background.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants