Back to demos index

OO has limited support. The internal behaviour is that the constructor and length property of an object are saved, and then during restoration the same constructor is invoked with the stored length as a parameter. This is a convenient way to preserve the length of arrays and anything derived from them. If no length property is found to save, then it is not saved and the constructor is invoked without parameters during restoration.

The name of the constructor is read directly from the object (although it is usually inherited from the prototype) and the global object must have a property of that name resolving to the constructor function by the time the persistent is opened for restore.

That style of prototype-based OO where Object.create() is used and the constructor pointer is ignored cannot be supported.