Hi,

When the uniform proxy API [1] was being explored, was it ever
considered to just cache the "call" and "construct" traps within the
proxy during the Proxy.create() call rather than look them up each
time the proxy is called as a function or constructor?  That seems to
solve most if not all of the issues I've seen mentioned.  There is a
precedent for this in that a constructor's "prototype" property is
cached in the internal [[Prototype]] property of objects it constructs
during the call to [[Construct]].

[1] http://wiki.ecmascript.org/doku.php?id=strawman:uniform_proxies

Thanks,
Sean Eagan
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to