Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/vue-logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ class VueLogger implements ILogger {
} catch (e) {
error = e;
}

//@babel/runtime: function name comes after a certain line
if (error.stack.split("asyncToGenerator.js:30:12").length > 1) {
let split = error.stack.split("asyncToGenerator.js:30:12")
return split[1].substring(0, split[1].indexOf("@web")).split('\n_').join('')
}

// IE9 does not have .stack property
if (error.stack === undefined) {
return "";
Expand Down