src/stacktrace.js
function _parserFirefox(error){
		// start parse the error stack string
		var lines	= error.stack.split("\n").slice(0, -1);
		var stacktrace	= [];
		lines.forEach(function(line){
			var matches	= line.match(/^(.*)@(.+):(\d+)$/);
			stacktrace.push(new Stacktrace.Frame({
				fct	: matches[1] === '' ? '<anonymous>' : matches[1],
				url	: matches[2],
				line	: parseInt(matches[3], 10),
				column	: 1
			}));
		});
		return stacktrace;
	}
function _parserFirefox(error){
		// start parse the error stack string
		var lines	= error.stack.split("\n").slice(0, -1);
		var stacktrace	= [];
		lines.forEach(function(line){
			var matches	= line.match(/^(.*)@(.+):(\d+)$/);
			stacktrace.push(new Stacktrace.Frame({
				fct	: matches[1] === '' ? '<anonymous>' : matches[1],
				url	: matches[2],
				line	: parseInt(matches[3], 10),
				column	: 1
			}));
		});
		return stacktrace;
	}
function _parserFirefox ( error ) { // start parse the error stack string var lines = error . stack . split ( "\n" ) . slice ( 0 , - 1 ) ; var stacktrace = [ ] ; lines . forEach ( function ( line ) { var matches = line . match ( / ^(.*)@(.+):(\d+)$ / ) ; stacktrace . push ( new Stacktrace . Frame ( { fct : matches [ 1 ] === '' ? '<anonymous>' : matches [ 1 ] , url : matches [ 2 ] , line : parseInt ( matches [ 3 ] , 10 ) , column : 1 } ) ) ; } ) ; return stacktrace ; }
parse the stacktrace from firefox
parse the stacktrace from firefox