Skip to content

Commit e47e9cb

Browse files
author
Javier Arancibia
committed
1 parent 0964b18 commit e47e9cb

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
@@ -48,6 +48,13 @@ class VueLogger implements ILogger {
4848
} catch (e) {
4949
error = e;
5050
}
51+
52+
//@babel/runtime: function name comes after a certain line
53+
if (error.stack.split("asyncToGenerator.js:30:12").length > 1) {
54+
let split = error.stack.split("asyncToGenerator.js:30:12")
55+
return split[1].substring(0, split[1].indexOf("@web")).split('\n_').join('')
56+
}
57+
5158
// IE9 does not have .stack property
5259
if (error.stack === undefined) {
5360
return "";

0 commit comments

Comments
 (0)