MCPcopy
hub / github.com/sql-js/sql.js / jsStackTrace

Function jsStackTrace

js/sql-debug.js:1051–1066  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1049}
1050
1051function jsStackTrace() {
1052 var err = new Error();
1053 if (!err.stack) {
1054 // IE10+ special cases: It does have callstack info, but it is only populated if an Error object is thrown,
1055 // so try that as a special-case.
1056 try {
1057 throw new Error(0);
1058 } catch(e) {
1059 err = e;
1060 }
1061 if (!err.stack) {
1062 return '(no stack trace available)';
1063 }
1064 }
1065 return err.stack.toString();
1066}
1067
1068function jsStackTrace() {
1069 var err = new Error();

Callers 1

stackTraceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…