Mark an object to be exposed for remote interaction
and give it a suggestive interface name for debugging.
All properties of the object have to be methods, not data.
The object must not be hardened before it is marked.
It will be hardened after marking.
For far objects (as opposed to far functions), also adds
__getMethodNames__ method that returns an array of all the method names,
if there is not yet any method named __getMethodNames__.
Mark an object to be exposed for remote interaction and give it a suggestive interface name for debugging.
All properties of the object have to be methods, not data.
The object must not be hardened before it is marked. It will be hardened after marking.
For far objects (as opposed to far functions), also adds
__getMethodNames__
method that returns an array of all the method names, if there is not yet any method named__getMethodNames__
.Example