function(e) {
	        // "  Line 43 of linked script file://localhost/G:/js/stacktrace.js\n"
	        // "  Line 7 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html\n"
	        var ANON = '{anonymous}', lineRE = /Line (\d+).*script (?:in )?(\S+)/i;
	        var lines = e.message.split('\n'), result = [];

	        for (var i = 2, len = lines.length; i < len; i += 2) {
	            var match = lineRE.exec(lines[i]);
	            if (match) {
	                result.push(ANON + '()@' + match[2] + ':' + match[1] + ' -- ' + lines[i + 1].replace(/^\s+/, ''));
	            }
	        }

	        return result;
	    }
function(e) {
	        
	        
	        var ANON = '{anonymous}', lineRE = /Line (\d+).*script (?:in )?(\S+)/i;
	        var lines = e.message.split('\n'), result = [];

	        for (var i = 2, len = lines.length; i < len; i += 2) {
	            var match = lineRE.exec(lines[i]);
	            if (match) {
	                result.push(ANON + '()@' + match[2] + ':' + match[1] + ' -- ' + lines[i + 1].replace(/^\s+/, ''));
	            }
	        }

	        return result;
	    }
function ( e ) { // "  Line 43 of linked script file://localhost/G:/js/stacktrace.js\n" // "  Line 7 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html\n" var ANON = '{anonymous}' , lineRE = / Line (\d+).*script (?:in )?(\S+) / i ; var lines = e . message . split ( '\n' ) , result = [ ] ; for ( var i = 2 , len = lines . length ; i < len ; i += 2 ) { var match = lineRE . exec ( lines [ i ] ) ; if ( match ) { result . push ( ANON + '()@' + match [ 2 ] + ':' + match [ 1 ] + ' -- ' + lines [ i + 1 ] . replace ( / ^\s+ / , '' ) ) ; } } return result ; }
Opera 7.x-9.2x only!
Opera 7 . x - 9 . 2x only!