We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aedf661 commit 30263b4Copy full SHA for 30263b4
src/library_stack_trace.js
@@ -6,20 +6,7 @@
6
7
var LibraryStackTrace = {
8
$jsStackTrace: function() {
9
- var error = new Error();
10
- if (!error.stack) {
11
- // IE10+ special cases: It does have callstack info, but it is only
12
- // populated if an Error object is thrown, so try that as a special-case.
13
- try {
14
- throw new Error();
15
- } catch(e) {
16
- error = e;
17
- }
18
19
- return '(no stack trace available)';
20
21
22
- return error.stack.toString();
+ return new Error().stack.toString();
23
},
24
25
$stackTrace__deps: ['$jsStackTrace'],
0 commit comments