Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
parseBacktrace: function (backtrace) {
if (!backtrace) {
return null;
}
let result = backtrace.match(/^(.+?)\s*:\s*(\d+)$/);
if (!result || result.length != 3) {
return backtrace;
}
return {
url: result[1],
line: result[2]
};
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment