rem: MochiKit.Base.registerJSON( 
add: Divmod.Base.registerJSON( 
context:     function __init__(self) {        Divmod.Runtime.Opera.upcall(self, '__init__', 'Opera');        self.lp = document.implementation.createLSParser(DOMImplementationLS.MODE_SYNCHRONOUS, null);        self.ls = document.implementation.createLSSerializer();        // Provide a JSON adapter for client-side errors, to make Athena happy        // when it tries to send exceptions from the client to the server        // TODO: Convert Opera's backtrace string to FF's stacktrace format        MochiKit.Base.registerJSON(            'Error',             function(obj) {                return obj instanceof Error;            },            function(obj) {                var stack = 'No stacktrace available\n';                var message = obj.message;                var backtrace = message.indexOf('Backtrace:');                if(backtrace != -1) {                    stack = message.slice(backtrace);                    message = message.slice(0, backtrace);                }                return {                    'name': obj.name,                    'message': message,                    'stack': stack                };            }        );    },
meta: 1565	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1565/a605ae3eac00a8c52043b2a49c4d21cd765b897a/runtime.js/buggy/nevow/runtime.js