I have a little RPC library for node, and right now it uses harmony proxies for remote objects if they are available (by checking for the existence of a Proxy
global).
I'd like to be able to turn harmony proxies on at runtime, that is, in a node process that was not started with the --harmony-proxy
flag. Is this possible?
I understand that there are good reasons not to do this, and I don't really care :-P
EDIT As pointed out in the answers, node.js proxies use an older spec. I can use a shim like https://github.com/tvcutsem/harmony-reflect to work around this, but this still requires the --harmony
flag to enable the underlying proxy support, and I want to know whether it's possible to enable that at runtime in a process started without the --harmony
flags.