Comment #32 on issue 1543 by [email protected]: Implement Proxy proposal
http://code.google.com/p/v8/issues/detail?id=1543

The Node.js team has a use for direct proxies: allowing us to create fake globals that intercept defineProperties on them for use in the vm module. Currently we use ObjectTemplate which has GlobalPropertyGetterCallback, GlobalPropertySetterCallback, GlobalPropertyQueryCallback, GlobalPropertyDeleterCallback, GlobalPropertyEnumeratorCallback, but this does not encompass all operations. In particular, it does not have defineProperty, so if people declare global functions inside the vm, we have no way to intercept that.

If direct proxies were available, we could turn them on in V8, then use them to implement this desired proxying behavior. As is, we shouldn't turn on --harmony-proxies, because then Node.js consumers would start using the old API.

More details about the particular use case at https://github.com/joyent/node/pull/6417.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to