You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: