Skip to content

Commit 7a82b7e

Browse files
authored
Merge pull request #2 from javimosch/master
fixes justinkames#35
2 parents 1645a29 + e47e9cb commit 7a82b7e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/vue-logger.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ class VueLogger implements ILogger {
4343
} catch (e) {
4444
error = e;
4545
}
46+
47+
//@babel/runtime: function name comes after a certain line
48+
if (error.stack.split("asyncToGenerator.js:30:12").length > 1) {
49+
let split = error.stack.split("asyncToGenerator.js:30:12")
50+
return split[1].substring(0, split[1].indexOf("@web")).split('\n_').join('')
51+
}
52+
4653
// IE9 does not have .stack property
4754
if (error.stack === undefined) {
4855
return "";

0 commit comments

Comments
 (0)