Subj : cloning context/runtime To : mozilla-jseng@mozilla.org From : matthias@atip.de (Matthias Thiel) Date : Wed Aug 06 2003 10:43 am Hi, is there a simple possibility for creating a copy of a context or runtime ? The idea is to create a copy of the whole ecmascript environment which may be changed by some scripts. After execution of these scripts, it should be possible to "rollback" all changes in the context for working with the original context. A rollback function would be too complex, so I want to create a copy of the whole context that I may use for retrieving the old state. Would it be a good idea to implement a function for deep copying the context struct ? Has anyone done something like that yet ? thanks in advance, Matthias Thiel -- Matthias Thiel ATIP GmbH Software Developer Daimlerstr. 32 D-60314 Frankfurt/Main phone: +49 69 941963 220 fax: +49 69 941963 188 web: www.atip.de .